Function at 0x438380
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x647d88
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x6c3afc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0xffffffffffffffff
xor esi, esi
push esi
lea eax, [ebp + 0x40]
push eax
lea ecx, [ebx + 0x1c]
mov dword [ebp - 4], 3
call fcn.00403240
push 0xffffffffffffffff
xor ecx, ecx
push esi
lea edx, [ebp + 0x40]
mov word [ebp - 0x4c], cx
mov edi, 7
push edx
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], esi
call fcn.00403240
push 0xffffffffffffffff
push esi
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
xor eax, eax
push ecx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], esi
mov word [ebp - 0x30], ax
call fcn.00403240
mov dl, byte [ebp + 0x7c]
mov byte [ebp - 0x14], dl
mov byte [ebp - 4], 5
cmp dword [ebp + 0x34], esi
je 0x438597
cmp dword [ebp + 0x38], 8
mov eax, dword [ebp + 0x24]
jae 0x438423
lea eax, [ebp + 0x24]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
test al, al
je 0x438597
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x6c], esp
push 0xffffffffffffffff
push esi
lea edx, [ebp + 0x24]
xor eax, eax
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], esi
push edx
mov word [ecx], ax
call fcn.00403240
lea esi, [ebp - 0x68]
call fcn.00437ba0
add esp, 0x1c
push eax
mov ecx, ebx
mov byte [ebp - 4], 6
call fcn.00403740
mov byte [ebp - 4], 5
cmp dword [ebp - 0x54], 0x10
jb 0x438483
mov eax, dword [ebp - 0x68]
push eax
call fcn.004effaf
add esp, 4
xor esi, esi
push 0xffffffffffffffff
push esi
lea eax, [ebp + 0x5c]
push eax
lea ecx, [ebx + 0x38]
call fcn.00403240
mov ecx, dword [ebp + 0x78]
lea edx, [ebp + 0x40]
push edx
lea edi, [ebp - 0x68]
mov dword [ebx + 0x54], ecx
call fcn.004319f0
add esp, 4
cmp byte [ebp + 0x7c], 0
mov byte [ebp - 4], 8
jne 0x4384bb
push ebx
mov ecx, eax
call fcn.00438880
cmp dword [ebp - 0x54], 0x10
jb 0x4384cd
mov eax, dword [ebp - 0x68]
push eax
call fcn.004effaf
add esp, 4
mov edi, 8
cmp dword [ebp - 0x1c], edi
jb 0x4384e3
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004effaf
add esp, 4
xor edx, edx
mov ebx, 7
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], esi
mov word [ebp - 0x30], dx
cmp dword [ebp - 0x38], edi
jb 0x438505
mov eax, dword [ebp - 0x4c]
push eax
call fcn.004effaf
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], esi
mov word [ebp - 0x4c], cx
cmp dword [ebp + 0x1c], edi
jb 0x438522
mov edx, dword [ebp + 8]
push edx
call fcn.004effaf
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], ebx
mov dword [ebp + 0x18], esi
mov word [ebp + 8], ax
cmp dword [ebp + 0x38], edi
jb 0x43853f
mov ecx, dword [ebp + 0x24]
push ecx
call fcn.004effaf
add esp, 4
xor edx, edx
mov dword [ebp + 0x38], ebx
mov dword [ebp + 0x34], esi
mov word [ebp + 0x24], dx
cmp dword [ebp + 0x54], edi
jb 0x43855c
mov eax, dword [ebp + 0x40]
push eax
call fcn.004effaf
add esp, 4
xor ecx, ecx
mov dword [ebp + 0x54], ebx
mov dword [ebp + 0x50], esi
mov word [ebp + 0x40], cx
cmp dword [ebp + 0x70], edi
jb 0x438579
mov edx, dword [ebp + 0x5c]
push edx
call fcn.004effaf
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005dd8e2
mov esp, ebp
pop ebp
ret 0x78
lea ecx, [ebp - 0x68]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.0043d5f0
push eax
mov ecx, ebx
mov byte [ebp - 4], 7
call fcn.00403740
mov byte [ebp - 4], 5
cmp dword [ebp - 0x54], 0x10
jb 0x438485
mov edx, dword [ebp - 0x68]
push edx
call fcn.004effaf
add esp, 4
jmp 0x438485