Function at 0x4062a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4458d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0xc]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push eax
mov dword [esi + 0x70], ebx
mov dword [esi + 0x6c], ebx
call edi
test eax, eax
je 0x40630c
mov al, byte [ebp + 0x10]
test al, al
je 0x40630c
mov eax, dword [esi + 0x68]
push ebx
push ebx
mov ebx, dword [sym.imp.USER32.dll_PostThreadMessageA]
mov ecx, dword [eax + 0x2c]
push 0x800c
push ecx
call ebx
mov edx, dword [esi + 0x2c]
push 0
push 0
push 0x12
push edx
call ebx
jmp 0x40632b
mov eax, dword [ebp + 8]
push eax
call edi
test eax, eax
jne 0x406359
mov esi, dword [esi + 0x68]
push ebx
push 4
push 0x8002
mov ecx, dword [esi + 0x2c]
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageA]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.00438d2e
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.00438d2e
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x10
mov byte [ebp - 4], 2
call fcn.00438a6f
mov ecx, eax
add esp, 4
mov dword [ebp - 0x18], ecx
cmp ecx, ebx
mov byte [ebp - 4], 3
je 0x406384
mov edx, dword [ebp + 8]
push 0x8000
push edx
call fcn.00439350
jmp 0x406386
xor eax, eax
mov dword [esi + 0x6c], eax
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
mov dword [ebp - 4], 1
call fcn.00438aa3
lea ecx, [ebp - 0x18]
push ecx
mov ecx, esi
call fcn.00406720
mov eax, dword [eax]
mov ecx, esi
push eax
mov byte [ebp - 4], 5
call fcn.004067e0
test al, al
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
sete bl
call fcn.00438d2e
test bl, bl
je 0x4063e2
mov esi, dword [esi + 0x68]
push 0
push 0xb
push 0x8002
mov edx, dword [esi + 0x2c]
push edx
jmp 0x406325
mov eax, dword [ebp + 0xc]
push eax
call edi
test eax, eax
je 0x4063fb
mov ecx, dword [ebp + 0xc]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov al, byte [ebp + 0x14]
mov bl, 6
test al, al
mov byte [ebp - 4], bl
mov dword [esi + 0x80], 0
je 0x4064b6
push ecx
lea edx, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x18], esp
push edx
call fcn.00438aa3
mov eax, dword [esi + 0x6c]
mov ecx, esi
push eax
call fcn.004069b0
test al, al
je 0x406475
push 0x10
call fcn.00438a6f
mov ecx, eax
add esp, 4
mov dword [ebp - 0x18], ecx
test ecx, ecx
mov byte [ebp - 4], 7
je 0x40645c
mov edx, dword [ebp + 0xc]
push 0xb001
push edx
call fcn.00439350
mov ecx, eax
jmp 0x40645e
xor ecx, ecx
mov dword [esi + 0x70], ecx
mov eax, dword [ecx]
push 2
push 0
mov byte [ebp - 4], bl
call dword [eax + 0x28]
mov dword [esi + 0x80], eax
jmp 0x4064e2
push ecx
lea edx, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x18], esp
push edx
call fcn.00438aa3
mov eax, dword [esi + 0x6c]
mov ecx, esi
push eax
call fcn.00406be0
push 0x10
call fcn.00438a6f
mov ecx, eax
add esp, 4
mov dword [ebp - 0x18], ecx
test ecx, ecx
mov byte [ebp - 4], 8
je 0x4064dd
mov edx, dword [ebp + 0xc]
push 0x9001
push edx
call fcn.00439350
jmp 0x4064df
push 0x10
call fcn.00438a6f
mov ecx, eax
add esp, 4
mov dword [ebp - 0x18], ecx
test ecx, ecx
mov byte [ebp - 4], 9
je 0x4064dd
mov eax, dword [ebp + 0xc]
push 0x9001
push eax
call fcn.00439350
jmp 0x4064df
xor eax, eax
mov dword [esi + 0x70], eax
mov cl, byte [ebp + 0x10]
mov dl, byte [ebp + 0x14]
mov eax, dword [esi + 0x2c]
push 0
push 0
push 0x800d
mov dword [ebp - 4], 1
mov byte [esi + 0x74], cl
mov byte [esi + 0x75], dl
push eax
jmp 0x406325