Function at 0x4599a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd7e8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4e9688]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov esi, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x459ba4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x459ba4
lea edi, [ebp - 0x10]
mov eax, esi
mov dword [ebp - 0x10], 0
call fcn.00459820
mov eax, dword [ebp - 0x10]
xor edi, edi
cmp eax, edi
je 0x459a1a
mov ecx, dword [ebp + 8]
push ebx
push ecx
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp + 0xc], edi
push esi
mov dword [ebp - 4], edi
call fcn.00459290
mov eax, dword [esi]
cmp eax, edi
je 0x459a3b
lea edx, [ebp + 0xc]
push edx
push 0x4d0ddc
call eax
cmp eax, edi
je 0x459a4d
mov esi, dword [esi + 4]
cmp esi, edi
je 0x459a4d
lea eax, [ebp + 0xc]
push eax
push 0x4d0ddc
call esi
or esi, 0xffffffff
cmp ebx, edi
je 0x459a56
mov dword [ebx], esi
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x459b95
mov edx, dword [ebp + 8]
mov ecx, dword [eax]
push edi
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
je 0x459b92
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 8]
push edx
mov dword [ebp + 8], edi
mov ecx, dword [eax]
push 4
push eax
mov eax, dword [ecx + 0x54]
call eax
test eax, eax
je 0x459ad6
mov eax, dword [ebp + 8]
shl eax, 0x10
sar eax, 0x1c
cmp eax, 2
je 0x459aa1
cmp eax, 3
jne 0x459ad6
cmp ebx, edi
je 0x459aab
mov dword [ebx], 1
mov dword [ebp - 4], esi
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x459abd
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 8]
push edx
mov dword [ebp + 8], edi
mov ecx, dword [eax]
push 3
push eax
mov eax, dword [ecx + 0x54]
call eax
test eax, eax
je 0x459b34
mov ecx, dword [ebp + 8]
and ecx, 0xf00
cmp ecx, 0x300
jne 0x459b34
cmp ebx, edi
je 0x459b09
mov dword [ebx], 3
mov dword [ebp - 4], esi
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x459b1b
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 8]
push edx
mov dword [ebp + 8], edi
mov ecx, dword [eax]
push 5
push eax
mov eax, dword [ecx + 0x54]
call eax
test eax, eax
je 0x459b92
mov ecx, dword [ebp + 8]
and ecx, 0xf0000
cmp ecx, 0x30000
jne 0x459b92
cmp ebx, edi
je 0x459b67
mov dword [ebx], 4
mov dword [ebp - 4], esi
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x459b1b
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], esi
cmp eax, edi
je 0x459ba4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8