Function at 0x40d971
Capabilities:
Check if file exists

Disassembly:
push ebp
sub esp, 0x68
push 0x38
mov eax, 0x43c3ff
call fcn.00422277
mov esi, ecx
lea eax, [esi + 0x5f8]
xor ebx, ebx
mov dword [ebp + 0x68], ebx
push eax
mov dword [ebp + 0x68], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40dc8f
lea ecx, [ebp]
call fcn.0040d91c
lea ecx, [ebp]
mov dword [ebp - 4], ebx
call fcn.0041a661
push 0x445158
lea eax, [ebp + 0x38]
push esi
push eax
call fcn.0040ca58
lea ecx, [esi + 0x70]
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 1
call fcn.0040bb4d
push ebx
push eax
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 4], 2
call fcn.0041b643
add esp, 0x24
cmp dword [eax + 0x18], 8
mov byte [ebp - 4], 3
jb 0x40d9f5
mov eax, dword [eax + 4]
jmp 0x40d9f8
add eax, 4
push eax
lea ecx, [ebp]
call fcn.0041a1b2
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0x44]
call fcn.0040b003
push ebx
push edi
lea ecx, [ebp - 0x28]
call fcn.00401f6a
push ebx
push edi
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], bl
call fcn.00401f6a
push ebx
lea eax, [esi + 0x1c]
push eax
lea eax, [ebp + 0x38]
push eax
call fcn.0041b643
add esp, 0xc
cmp dword [eax + 0x18], 8
mov byte [ebp - 4], 4
jb 0x40da45
mov eax, dword [eax + 4]
jmp 0x40da48
add eax, 4
push eax
push 0x445150
lea ecx, [ebp]
call fcn.0041a78c
push ebx
push edi
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], bl
call fcn.0040b003
push ebx
lea eax, [esi + 0x8c]
push eax
lea eax, [ebp + 0x38]
push eax
call fcn.0041b643
add esp, 0xc
cmp dword [eax + 0x18], 8
mov byte [ebp - 4], 5
jb 0x40da86
mov eax, dword [eax + 4]
jmp 0x40da89
add eax, 4
push eax
push 0x445148
lea ecx, [ebp]
call fcn.0041a78c
push ebx
push edi
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], bl
call fcn.0040b003
push ebx
push dword [ebp + 0x68]
lea eax, [ebp + 0x38]
push eax
call fcn.0041b5db
add esp, 0xc
cmp dword [eax + 0x18], 8
mov byte [ebp - 4], 6
jb 0x40dac3
mov eax, dword [eax + 4]
jmp 0x40dac6
add eax, 4
push eax
push str.file
lea ecx, [ebp]
call fcn.0041a7fd
push ebx
push edi
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], bl
call fcn.0040b003
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.0040c306
push ebx
push eax
lea eax, [ebp + 0x38]
push eax
mov byte [ebp - 4], 7
call fcn.0041b643
add esp, 0xc
cmp dword [eax + 0x18], 8
mov byte [ebp - 4], 8
jb 0x40db0d
mov eax, dword [eax + 4]
jmp 0x40db10
add eax, 4
push eax
push str.cverify
lea ecx, [ebp]
call fcn.0041a78c
push ebx
push edi
lea ecx, [ebp + 0x38]
call fcn.0040b003
push ebx
push edi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.00401f6a
push 0xffffffffffffffff
lea ecx, [ebp]
call fcn.00419ca5
test eax, eax
je 0x40dc7f
lea eax, [ebp + 0x64]
push eax
lea ecx, [ebp]
call fcn.0041a1ba
push ebx
push dword [ebp + 0x68]
lea eax, [ebp + 0x38]
push eax
mov byte [ebp - 4], 9
call fcn.0041b5db
add esp, 0xc
cmp dword [eax + 0x18], 8
jb 0x40db72
mov eax, dword [eax + 4]
jmp 0x40db75
add eax, 4
push eax
mov esi, str.dumpuper.__s
push esi
call fcn.00402abd
pop ecx
pop ecx
push ebx
push edi
lea ecx, [ebp + 0x38]
call fcn.0040b003
push dword [ebp + 0x64]
push esi
call fcn.00402abd
pop ecx
pop ecx
lea eax, [ebp + 0x64]
push eax
lea ecx, [ebp + 0x5c]
call fcn.00403ed7
push 6
push 2
lea eax, [ebp + 0x54]
push eax
lea ecx, [ebp + 0x5c]
mov byte [ebp - 4], 0xa
mov dword [ebp + 0x68], edi
call fcn.00407d87
push 0xb
pop esi
push str.status
mov ecx, eax
mov dword [ebp - 4], esi
mov dword [ebp + 0x68], 3
call fcn.00402e1e
test eax, eax
jne 0x40dc1a
lea eax, [ebp + 0x64]
push eax
lea ecx, [ebp + 0x60]
call fcn.00403ed7
push edi
push esi
lea eax, [ebp + 0x58]
push eax
lea ecx, [ebp + 0x60]
mov dword [ebp - 4], 0xc
mov dword [ebp + 0x68], 7
call fcn.00407d87
push 0x443994
mov ecx, eax
mov dword [ebp - 4], 0xd
mov dword [ebp + 0x68], 0xf
call fcn.00402e1e
test byte [ebp + 0x68], 8
je 0x40dc2f
mov ecx, dword [ebp + 0x58]
and dword [ebp + 0x68], 0xfffffff7
add ecx, 0xfffffff0
call fcn.00402a0d
test byte [ebp + 0x68], 4
je 0x40dc44
mov ecx, dword [ebp + 0x60]
and dword [ebp + 0x68], 0xfffffffb
add ecx, 0xfffffff0
call fcn.00402a0d
test byte [ebp + 0x68], 2
je 0x40dc59
mov ecx, dword [ebp + 0x54]
and dword [ebp + 0x68], 0xfffffffd
add ecx, 0xfffffff0
call fcn.00402a0d
test byte [ebp + 0x68], 1
mov dword [ebp - 4], 9
je 0x40dc71
mov ecx, dword [ebp + 0x5c]
add ecx, 0xfffffff0
call fcn.00402a0d
mov ecx, dword [ebp + 0x64]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.00402a0d
lea ecx, [ebp]
call fcn.00419922
lea ecx, [ebp]
call fcn.0040d94e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret