Function at 0x457f60
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a6a7e
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61ac94]
xor eax, esp
push eax
lea eax, [esp + 0x108]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 4]
push eax
xor esi, esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x457fbc
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x1b]
push eax
lea ecx, [esp + 0x1f]
push ecx
lea ecx, [esp + 0xbc]
call fcn.00421500
mov dword [esp + 0x110], esi
call fcn.004a581f
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x457ff3
push 0x80004005
call fcn.0040b390
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov ecx, ebx
mov byte [esp + 0x110], 1
call fcn.00456d20
mov eax, dword [ebx + 4]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
mov ecx, ebx
mov dword [esp + 0x2c], esi
call fcn.00453260
mov edi, dword [esp + 0x20]
cmp edi, esi
je 0x45833c
lea ebp, [ebx + 0x28]
mov ecx, ebp
call fcn.00457640
mov eax, dword [ebx + 0x58]
mov ecx, dword [eax + 4]
lea esi, [ebx + 0x40]
push ecx
mov ecx, esi
call fcn.00454120
mov eax, dword [esi + 0x18]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0x1c], 0
mov dword [eax], eax
mov eax, dword [esi + 0x18]
lea ecx, [esp + 0x44]
mov dword [eax + 8], eax
call fcn.00454450
mov edx, edi
push 0xd
push edx
mov byte [esp + 0x118], 2
call fcn.004e9ef0
add esp, 8
mov dword [esp + 0x24], eax
jmp 0x458094
mov eax, dword [esp + 0x24]
test eax, eax
je 0x458321
push 3
push edi
push 0x5c6d34
mov byte [eax], 0
call fcn.004ea0a2
add esp, 0xc
test eax, eax
jne 0x4582e7
lea eax, [esp + 0x44]
push eax
push edi
mov ecx, ebx
call fcn.004555c0
test eax, eax
je 0x458303
movzx ecx, word [esp + 0x5c]
movzx edx, word [esp + 0x5a]
movzx eax, word [esp + 0x58]
push ecx
movzx ecx, word [esp + 0x5a]
push edx
movzx edx, word [esp + 0x5a]
push eax
movzx eax, word [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x58]
push edx
push eax
push ecx
lea edx, [esp + 0x38]
push 0x5c6cf0
push edx
call fcn.0040cbe0
mov eax, dword [esp + 0xf0]
mov edi, dword [esp + 0xd8]
add esp, 0x24
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0xe0]
push edx
lea ecx, [esp + 0xbc]
mov dword [esp + 0xa8], eax
call fcn.00420690
mov dword [esp + 0x30], eax
test edi, edi
je 0x458141
cmp edi, dword [eax]
je 0x45814a
call fcn.004e73ca
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0xa0]
cmp ecx, dword [eax + 4]
jne 0x458303
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0xfc]
push eax
lea ecx, [esp + 0xbc]
call fcn.00426250
xor ecx, ecx
cmp cx, word [esp + 0x60]
jne 0x45824d
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
push edx
push eax
lea ecx, [esp + 0x24]
push str._u__s
push ecx
call fcn.0040cbe0
add esp, 0x10
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0xe8]
lea edi, [ebx + 8]
push eax
mov ecx, edi
call fcn.00454e40
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [edi + 0x18]
mov edi, dword [edi]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0xb0], eax
test edi, edi
je 0x4581d4
cmp edi, ecx
je 0x4581d9
call fcn.004e73ca
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0xb0], ecx
je 0x45824d
lea ecx, [esp + 0x28]
call fcn.00454590
mov edx, dword [eax + 0x48]
mov dword [esp + 0x84], edx
mov eax, dword [eax + 0x4c]
lea ecx, [esp + 0x28]
mov dword [esp + 0x88], eax
call fcn.00454590
mov ecx, dword [eax + 0x40]
mov dword [esp + 0x7c], ecx
mov edx, dword [eax + 0x44]
lea ecx, [esp + 0x28]
mov dword [esp + 0x80], edx
call fcn.00454590
mov eax, dword [eax + 0x50]
lea ecx, [esp + 0x28]
mov dword [esp + 0x8c], eax
call fcn.00454590
mov ecx, dword [eax + 0x58]
mov dword [esp + 0x94], ecx
mov edx, dword [eax + 0x5c]
mov dword [esp + 0x98], edx
lea eax, [esp + 0x44]
push eax
mov ecx, ebp
call fcn.00457ec0
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0xd8]
push edx
mov ecx, esi
call fcn.00454ec0
mov ecx, dword [eax]
mov edi, dword [eax + 4]
mov eax, dword [esi + 0x18]
mov dword [esp + 0xa8], eax
mov eax, dword [esi]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edi
test eax, eax
je 0x45828e
cmp eax, ecx
je 0x458293
call fcn.004e73ca
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0xa8], edi
jne 0x4582d6
mov ecx, dword [esp + 0x48]
dec eax
lea edx, [esp + 0x3c]
mov dword [esp + 0x40], eax
push edx
lea eax, [esp + 0xf0]
mov dword [esp + 0x40], ecx
push eax
mov ecx, esi
call fcn.004569a0
jmp 0x458303
lea ecx, [esp + 0x34]
lea edi, [eax - 1]
call fcn.004545c0
mov dword [eax + 4], edi
jmp 0x458303
push 3
push edi
push 0x5c6cec
call fcn.004ea0a2
add esp, 0xc
test eax, eax
jne 0x458303
push edi
mov ecx, ebx
call fcn.00457140
mov edi, dword [esp + 0x24]
add edi, 2
push 0xd
push edi
call fcn.004e9ef0
add esp, 8
mov dword [esp + 0x24], eax
test edi, edi
jne 0x458090
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004a3d2b
add esp, 4
lea ecx, [esp + 0x44]
mov esi, 1
call fcn.0041eeb0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x110], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x458364
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0xb4]
mov dword [esp + 0x110], 0xffffffff
call fcn.0042ef60
mov eax, esi
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret