Function at 0x4558f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d1bd
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x5f969c]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x18]
mov dword [eax + 0x6c], ecx
lea ecx, [ebp - 0x10]
call fcn.00438030
mov dword [ebp - 4], 0
cmp dword [ebp + 0x18], 0
je 0x45595b
mov ecx, dword [ebp + 8]
call fcn.00455800
mov ecx, dword [ebp + 8]
add ecx, 0x48
call fcn.004dfdf0
add eax, 8
push eax
lea ecx, [ebp - 0x10]
call fcn.0041a580
jmp 0x455aac
cmp dword [ebp + 0xc], 0xffffffff
je 0x455971
cmp dword [ebp + 0xc], 0
je 0x455971
cmp dword [ebp + 0xc], 1
jne 0x455a74
mov ecx, dword [ebp + 8]
add ecx, 0x48
call fcn.004dfdf0
mov dword [ebp - 0x88], eax
mov edx, dword [ebp - 0x88]
mov eax, dword [ebp - 0x88]
mov ecx, dword [edx + 0x870]
and ecx, dword [eax + 0x874]
cmp ecx, 0xffffffff
jne 0x455a53
mov ecx, dword [ebp + 8]
add ecx, 0x4c
call fcn.00436850
movzx edx, al
test edx, edx
je 0x455a3d
mov ecx, dword [ebp + 8]
add ecx, 0x48
call fcn.004dfdf0
add eax, 8
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x4c
call fcn.0041b5d0
push 0x58279c
mov ecx, dword [ebp + 8]
add ecx, 0x4c
call fcn.00437730
mov dword [ebp - 0x14], 0
jmp 0x4559f5
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x10000
jge 0x455a3d
mov ecx, dword [ebp + 8]
add ecx, 0x4c
call fcn.00406410
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x455a16
jmp 0x455a3d
push 0xa
push 0x20
lea ecx, [ebp - 0x5c]
push ecx
mov eax, dword [ebp - 0x14]
cdq
push edx
push eax
call fcn.00540ac7
add esp, 0x14
lea edx, [ebp - 0x5c]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0x4c
call fcn.00437730
jmp 0x4559ec
mov ecx, dword [ebp + 8]
add ecx, 0x4c
call fcn.00406410
push eax
lea ecx, [ebp - 0x10]
call fcn.0041a580
jmp 0x455a72
mov ecx, dword [ebp + 8]
call fcn.00455800
mov ecx, dword [ebp + 8]
add ecx, 0x48
call fcn.004dfdf0
add eax, 8
push eax
lea ecx, [ebp - 0x10]
call fcn.0041a580
jmp 0x455aac
mov ecx, dword [ebp + 8]
add ecx, 0x18
call fcn.0044fcb0
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
call fcn.00455b90
cmp dword [ebp + 0xc], 2
jne 0x455aac
mov ecx, dword [ebp - 0x60]
sub ecx, 1
mov dword [ebp - 0x64], ecx
lea edx, [ebp - 0x64]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0x30
call fcn.0044b5f0
mov esi, dword [ebp + 0xc]
add esi, 1
mov ecx, dword [ebp + 8]
add ecx, 0x18
call fcn.0044fcb0
cmp esi, eax
jbe 0x455af1
lea ecx, [ebp - 0x10]
call fcn.004dfdf0
push eax
lea ecx, [ebp - 0x80]
call fcn.004061d0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x80]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x18
call fcn.0044fd20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x80]
call fcn.00406210
lea ecx, [ebp - 0x10]
call fcn.004dfdf0
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov ecx, dword [ebp + 8]
add ecx, 0x48
call fcn.004dfdf0
add eax, 8
push eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x14]
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [ebp + 8]
add ecx, 0x48
call fcn.004dfdf0
mov ecx, dword [eax + 0x1198]
mov edx, dword [eax + 0x119c]
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [ebp - 0x84], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0044fc20
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0053c85d
mov esp, ebp
pop ebp
ret 0x14