Function at 0x4637a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b6311
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x628960]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x134]
mov edi, dword [ebp + 8]
mov edx, esi
push str..dat
mov dword [ebp - 0x150], esi
mov dword [ebp - 0x170], 0
call fcn.0043eaf0
add esp, 4
mov dword [ebp - 4], 0
lea eax, [ebp - 0x134]
cmp dword [ebp - 0x120], 0x10
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmovae eax, dword [ebp - 0x134]
push eax
call ebx
test eax, eax
setne al
test al, al
je 0x463a7c
cmp byte [ebp + 0x10], 0
jne 0x463a7c
push str.__d_.dat
mov edx, esi
lea ecx, [ebp - 0x14c]
call fcn.0043eaf0
add esp, 4
push 0x104
lea eax, [ebp - 0x11c]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.004a2440
add esp, 0xc
mov esi, 1
jmp 0x463870
cmp dword [ebp - 0x138], 0x10
lea eax, [ebp - 0x14c]
push esi
cmovae eax, dword [ebp - 0x14c]
push eax
lea eax, [ebp - 0x11c]
push 0x104
push eax
call fcn.004d7de3
add esp, 0x10
lea eax, [ebp - 0x11c]
push eax
call ebx
test eax, eax
setne al
test al, al
je 0x463a03
inc esi
cmp esi, 0x3e7
jl 0x463870
push 0xffffffffffffffff
push 0
push dword [ebp - 0x150]
lea ecx, [ebp - 0x16c]
mov dword [ebp - 0x158], 0xf
mov dword [ebp - 0x15c], 0
mov byte [ebp - 0x16c], 0
call fcn.00437570
sub esp, 0x18
mov byte [ebp - 4], 2
mov esi, esp
lea eax, [ebp - 0x16c]
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00437570
mov ecx, esi
call fcn.0044dab0
add esp, 0x18
mov edx, 0x64
mov ecx, 0xbb8
call fcn.00444860
add esp, 0x18
cmp dword [ebp - 0x158], 0x10
jb 0x46394b
push dword [ebp - 0x16c]
call fcn.0048b2ba
add esp, 4
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
mov ecx, dword [ebp - 0x120]
cmp ecx, 0x10
jae 0x463989
mov eax, dword [ebp - 0x124]
inc eax
je 0x46399b
push eax
lea eax, [ebp - 0x134]
push eax
push edi
call fcn.004a0690
mov ecx, dword [ebp - 0x120]
add esp, 0xc
jmp 0x46399b
mov eax, dword [ebp - 0x134]
mov dword [edi], eax
mov dword [ebp - 0x134], 0
cmp dword [ebp - 0x138], 0x10
mov eax, dword [ebp - 0x124]
mov dword [edi + 0x10], eax
mov eax, 0xf
mov dword [edi + 0x14], ecx
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x124], 0
mov byte [ebp - 0x134], 0
jb 0x4639e0
push dword [ebp - 0x14c]
call fcn.0048b2ba
mov eax, dword [ebp - 0x120]
add esp, 4
mov dword [ebp - 0x138], 0xf
cmp eax, 0x10
mov dword [ebp - 0x13c], 0
mov byte [ebp - 0x14c], 0
jmp 0x463a91
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
cmp byte [ebp - 0x11c], 0
jne 0x463a21
xor ecx, ecx
jmp 0x463a39
lea ecx, [ebp - 0x11c]
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x463a30
sub ecx, edx
push ecx
lea eax, [ebp - 0x11c]
mov ecx, edi
push eax
call fcn.004373f0
cmp dword [ebp - 0x138], 0x10
jb 0x463a5f
push dword [ebp - 0x14c]
call fcn.0048b2ba
add esp, 4
mov dword [ebp - 0x138], 0xf
mov dword [ebp - 0x13c], 0
mov byte [ebp - 0x14c], 0
jmp 0x463a8a
lea eax, [ebp - 0x134]
mov ecx, edi
push eax
call fcn.00440bb0
cmp dword [ebp - 0x120], 0x10
jb 0x463aa1
push dword [ebp - 0x134]
call fcn.0048b2ba
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a0676
mov esp, ebp
pop ebp
ret 0xc