Function at 0x4588b0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4d485d
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x51f714]
xor eax, esp
mov dword [esp + 0x9c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x51f714]
xor eax, esp
push eax
lea eax, [esp + 0xb4]
mov dword fs:[0], eax
mov esi, dword [esp + 0xc8]
mov ebp, dword [esp + 0xc4]
mov eax, dword [esp + 0xcc]
xor ebx, ebx
mov dword [esp + 0x18], ebx
cmp dword [esi + 0x18], 8
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], eax
jb 0x458919
mov eax, dword [esi + 4]
jmp 0x45891c
lea eax, [esi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x458bfb
cmp dword [esi + 0x14], ebx
je 0x458bfb
lea edx, [esp + 0x78]
mov ecx, esi
call fcn.00458d30
mov dword [esp + 0xbc], 3
lea ecx, [esp + 0x5c]
push ecx
call fcn.00457960
mov byte [esp + 0xbc], 4
lea edi, [esp + 0x40]
mov ecx, esi
call fcn.00458ed0
mov byte [esp + 0xbc], 5
lea edx, [esp + 0x1c]
push edx
mov ecx, eax
call fcn.004579c0
mov byte [esp + 0xbc], 6
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x9c]
push edx
call fcn.004588b0
add esp, 0xc
mov byte [esp + 0xbc], 8
mov esi, 8
cmp dword [esp + 0x34], esi
jb 0x4589bd
mov eax, dword [esp + 0x20]
push eax
call fcn.004ad670
add esp, 4
mov edi, 7
xor ecx, ecx
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], cx
mov byte [esp + 0xbc], 0xb
cmp dword [esp + 0x58], esi
jb 0x4589ec
mov edx, dword [esp + 0x44]
push edx
call fcn.004ad670
add esp, 4
push 0xffffffffffffffff
xor ecx, ecx
push ebx
lea edx, [esp + 0x80]
xor eax, eax
mov word [esp + 0x28], cx
push edx
lea ecx, [esp + 0x28]
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ebx
mov word [esp + 0x50], ax
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebx
call fcn.00403e21
mov byte [esp + 0xbc], 0xd
lea eax, [esp + 0x1c]
call fcn.004199fb
mov byte [esp + 0xbc], 0xe
cmp dword [esp + 0x30], ebx
je 0x458ad8
mov eax, dword [esp + 0x70]
cmp eax, ebx
je 0x458ac7
or ecx, 0xffffffff
sub ecx, eax
cmp ecx, 1
ja 0x458a5c
call fcn.004ab736
mov eax, dword [esp + 0x70]
lea esi, [eax + 1]
cmp esi, 0x7ffffffe
jbe 0x458a70
call fcn.004ab736
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
cmp ecx, esi
jae 0x458bd8
push eax
push esi
lea ecx, [esp + 0x64]
call fcn.00403f97
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
cmp esi, ebx
jbe 0x458ac2
cmp ecx, 8
mov ecx, dword [esp + 0x60]
jae 0x458aa0
lea ecx, [esp + 0x60]
mov edx, 0x5c
mov word [ecx + eax*2], dx
cmp dword [esp + 0x74], 8
mov eax, dword [esp + 0x60]
mov dword [esp + 0x70], esi
jae 0x458abc
lea eax, [esp + 0x60]
xor ecx, ecx
mov word [eax + esi*2], cx
mov esi, 8
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x68]
call fcn.0040958d
mov byte [esp + 0xbc], 0xb
cmp dword [esp + 0x34], esi
jb 0x458af3
mov eax, dword [esp + 0x20]
push eax
call fcn.004ad670
add esp, 4
push 0xffffffffffffffff
xor ecx, ecx
push ebx
lea edx, [esp + 0x64]
mov word [esp + 0x28], cx
mov ecx, dword [esp + 0x40]
push edx
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebx
call fcn.00403e21
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x9c]
xor eax, eax
push ecx
mov dword [ebp + 0x18], edi
mov dword [ebp + 0x14], ebx
mov ecx, ebp
mov word [ebp + 4], ax
call fcn.00403e21
mov byte [esp + 0xbc], 0xb
mov dword [esp + 0x18], 1
mov byte [esp + 0xbc], 4
cmp dword [esp + 0xac], esi
jb 0x458b62
mov edx, dword [esp + 0x98]
push edx
call fcn.004ad670
add esp, 4
xor eax, eax
mov dword [esp + 0xac], edi
mov dword [esp + 0xa8], ebx
mov word [esp + 0x98], ax
mov byte [esp + 0xbc], 3
cmp dword [esp + 0x74], esi
jb 0x458b95
mov ecx, dword [esp + 0x60]
push ecx
call fcn.004ad670
add esp, 4
xor edx, edx
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], dx
mov byte [esp + 0xbc], bl
cmp dword [esp + 0x90], esi
jb 0x458bc1
mov eax, dword [esp + 0x7c]
push eax
call fcn.004ad670
add esp, 4
xor ecx, ecx
mov dword [esp + 0x90], edi
mov dword [esp + 0x8c], ebx
mov word [esp + 0x7c], cx
jmp 0x458c25
cmp esi, ebx
jne 0x458a91
mov eax, dword [esp + 0x60]
mov dword [esp + 0x70], ebx
cmp ecx, 8
jae 0x458bf1
lea eax, [esp + 0x60]
xor edx, edx
mov word [eax], dx
jmp 0x458ac2
push 0xffffffffffffffff
push ebx
xor edx, edx
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], ebx
push esi
mov ecx, ebp
mov word [ebp + 4], dx
call fcn.00403e21
mov dword [esp + 0xbc], ebx
mov dword [esp + 0x18], 1
mov eax, ebp
mov ecx, dword [esp + 0xb4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.004ad67b
add esp, 0xac
ret