Function at 0x461f20
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a8ee1
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x617960]
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.0043d390
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 0x4621fb
cmp byte [ebp + 0x10], 0
jne 0x4621fb
push str.__d_.dat
mov edx, esi
lea ecx, [ebp - 0x14c]
call fcn.0043d390
add esp, 4
push 0x104
lea eax, [ebp - 0x11c]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.00495000
add esp, 0xc
mov esi, 1
jmp 0x461ff0
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.004cad75
add esp, 0x10
lea eax, [ebp - 0x11c]
push eax
call ebx
test eax, eax
setne al
test al, al
je 0x462197
inc esi
cmp esi, 0x3e7
jl 0x461ff0
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.004373c0
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.004373c0
mov ecx, esi
call fcn.004435b0
add esp, 0x18
mov edx, 0x64
mov ecx, 0xbb8
call fcn.00447670
add esp, 0x18
cmp dword [ebp - 0x158], 0x10
jb 0x4620cb
push dword [ebp - 0x16c]
call fcn.0047e2e9
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 0x462109
mov eax, dword [ebp - 0x124]
inc eax
je 0x46211b
push eax
lea eax, [ebp - 0x134]
push eax
push edi
call fcn.00493570
mov ecx, dword [ebp - 0x120]
add esp, 0xc
jmp 0x46211b
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 0x462160
push dword [ebp - 0x14c]
call fcn.0047e2e9
mov eax, dword [ebp - 0x120]
add esp, 4
cmp eax, 0x10
mov byte [ebp - 0x14c], 0
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x138], 0xf
jb 0x46224d
push dword [ebp - 0x134]
call fcn.0047e2e9
add esp, 4
jmp 0x46224d
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
cmp byte [ebp - 0x11c], 0
jne 0x4621b5
xor ecx, ecx
jmp 0x4621c9
lea ecx, [ebp - 0x11c]
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4621c0
sub ecx, edx
push ecx
lea eax, [ebp - 0x11c]
mov ecx, edi
push eax
call fcn.00437730
cmp dword [ebp - 0x138], 0x10
jb 0x4621ef
push dword [ebp - 0x14c]
call fcn.0047e2e9
add esp, 4
cmp dword [ebp - 0x120], 0x10
jmp 0x462163
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
mov ecx, dword [ebp - 0x120]
cmp ecx, 0x10
jae 0x462239
mov eax, dword [ebp - 0x124]
inc eax
je 0x462241
push eax
lea eax, [ebp - 0x134]
push eax
push edi
call fcn.00493570
mov ecx, dword [ebp - 0x120]
add esp, 0xc
jmp 0x462241
mov eax, dword [ebp - 0x134]
mov dword [edi], eax
mov eax, dword [ebp - 0x124]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
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.0049355b
mov esp, ebp
pop ebp
ret 0xc