Function at 0x4100c7
Capabilities:
Check if file exists

Disassembly:
push ebp
sub esp, 0x40
push 0x54
mov eax, 0x43cbb0
call fcn.00422277
mov esi, ecx
lea edi, [esi + 0x4f4]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x410352
lea ecx, [ebp - 0x44]
call fcn.0040d91c
xor ebx, ebx
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], ebx
call fcn.0041a661
push 0x445158
lea eax, [ebp + 0x1c]
push esi
push eax
call fcn.0040ca58
lea ecx, [esi + 0x54]
push ecx
push eax
lea eax, [ebp]
push eax
mov byte [ebp - 4], 1
call fcn.0040bb4d
push ebx
push eax
lea eax, [ebp - 0x60]
push eax
mov byte [ebp - 4], 2
call fcn.0041b643
add esp, 0x24
cmp dword [eax + 0x18], 8
mov byte [ebp - 4], 3
jb 0x410145
mov eax, dword [eax + 4]
jmp 0x410148
add eax, 4
push eax
lea ecx, [ebp - 0x44]
call fcn.0041a1b2
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0x60]
call fcn.0040b003
push ebx
push edi
lea ecx, [ebp]
call fcn.00401f6a
push ebx
push edi
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 0
call fcn.00401f6a
push ebx
lea eax, [esi + 0x1c]
push eax
lea eax, [ebp + 0x1c]
push eax
call fcn.0041b643
add esp, 0xc
cmp dword [eax + 0x18], 8
mov byte [ebp - 4], 4
jb 0x410196
mov eax, dword [eax + 4]
jmp 0x410199
add eax, 4
push eax
push 0x445150
lea ecx, [ebp - 0x44]
call fcn.0041a78c
push ebx
push edi
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 0
call fcn.0040b003
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.0040f76e
push ebx
push eax
lea eax, [ebp + 0x1c]
push eax
mov byte [ebp - 4], 5
call fcn.0041b643
add esp, 0xc
cmp dword [eax + 0x18], 8
mov byte [ebp - 4], 6
jb 0x4101e1
mov eax, dword [eax + 4]
jmp 0x4101e4
add eax, 4
push eax
push 0x4453cc
lea ecx, [ebp - 0x44]
call fcn.0041a78c
push ebx
push edi
lea ecx, [ebp + 0x1c]
call fcn.0040b003
push ebx
push edi
lea ecx, [ebp]
mov byte [ebp - 4], 0
call fcn.00401f6a
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.0040f0cf
push ebx
push eax
lea eax, [ebp + 0x1c]
push eax
mov byte [ebp - 4], 7
call fcn.0041b643
add esp, 0xc
cmp dword [eax + 0x18], 8
mov byte [ebp - 4], 8
jb 0x410236
mov eax, dword [eax + 4]
jmp 0x410239
add eax, 4
push eax
push str.cverify
lea ecx, [ebp - 0x44]
call fcn.0041a78c
push ebx
push edi
lea ecx, [ebp + 0x1c]
call fcn.0040b003
push ebx
push edi
lea ecx, [ebp]
mov byte [ebp - 4], 0
call fcn.00401f6a
push 0xffffffffffffffff
lea ecx, [ebp - 0x44]
call fcn.00419ca5
test eax, eax
je 0x410340
lea eax, [ebp + 0x40]
push eax
lea ecx, [ebp - 0x44]
call fcn.0041a1ba
push dword [ebp + 0x40]
mov byte [ebp - 4], 9
push str.dumpuper.__s
call fcn.00402abd
push ebx
push dword [ebp + 0x40]
lea eax, [ebp]
push eax
call fcn.0041b5a3
add esp, 0x14
push eax
lea eax, [ebp + 0x1c]
push eax
mov ecx, esi
mov byte [ebp - 4], 0xa
call fcn.0040be53
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esi + 0x8c]
mov byte [ebp - 4], 0xb
call fcn.00402215
push ebx
push edi
lea ecx, [ebp + 0x1c]
call fcn.00401f6a
push ebx
push edi
lea ecx, [ebp]
mov byte [ebp - 4], 9
call fcn.00401f6a
lea eax, [ebp + 0x40]
push eax
lea ecx, [ebp + 0x3c]
call fcn.00403ed7
push 6
push 2
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp + 0x3c]
mov byte [ebp - 4], 0xc
call fcn.00407d87
push str.dumpid
mov ecx, eax
mov byte [ebp - 4], 0xd
call fcn.00402e1e
mov ecx, dword [ebp + 0x38]
mov ebx, eax
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.00402a0d
mov ecx, dword [ebp + 0x3c]
add ecx, 0xfffffff0
call fcn.00402a0d
test bl, bl
je 0x410331
mov dword [esi + 0x4f0], edi
mov ecx, dword [ebp + 0x40]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00402a0d
lea ecx, [ebp - 0x44]
call fcn.00419922
lea ecx, [ebp - 0x44]
call fcn.0040d94e
jmp 0x410388
push 0
lea eax, [ebp + 0x1c]
push edi
push eax
call fcn.0041b5db
add esp, 0xc
cmp dword [eax + 0x18], 8
jb 0x41036c
mov eax, dword [eax + 4]
jmp 0x41036f
add eax, 4
push eax
push str.dumpuper._file_not_exists:__s
call fcn.00402abd
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp + 0x1c]
call fcn.0040b003
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x44
leave
ret