Function at 0x489420
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e0c65
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5203c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.004891d0
add esp, 8
push dword [ebp - 0x14]
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4894bd
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
push eax
call fcn.00476560
mov ebx, dword [ebp + 8]
add eax, 0x10
mov edx, dword [ebp - 0x14]
add esp, 4
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
mov dword [ebx], eax
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4896ee
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00476b10
mov ecx, eax
test ecx, ecx
je 0x489702
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, 0x4e794c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
test eax, 0xffff0000
jne 0x4894f5
movzx eax, ax
push eax
call fcn.00480960
jmp 0x489501
push 3
push 0x4e794c
call fcn.00477ed0
mov byte [ebp - 4], 2
test ebx, ebx
je 0x4895d7
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x489512
mov esi, dword [ebp - 0x10]
mov eax, ebx
sub eax, esi
sub ecx, edx
sar eax, 1
sar ecx, 1
mov edi, dword [esi - 0xc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edi
js 0x48970c
push ecx
push ebx
call fcn.004b59c3
mov ecx, 0x7fffffff
mov dword [ebp - 0x24], eax
sub ecx, eax
add esp, 8
cmp ecx, edi
jl 0x48970c
add edi, eax
js 0x48970c
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x48957a
push edi
lea ecx, [ebp - 0x10]
call fcn.00477120
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
lea edx, [esi + eax*2]
cmp eax, ecx
jbe 0x489589
mov edx, ebx
lea eax, [esi + ecx*2]
mov ecx, dword [ebp - 0x24]
add ecx, ecx
je 0x4895c3
test eax, eax
je 0x4895b3
push ecx
test edx, edx
je 0x4895a8
push edx
push eax
call fcn.004ad230
add esp, 0xc
jmp 0x4895c3
push 0
push eax
call fcn.004ad7b0
add esp, 0xc
call fcn.004b588e
mov dword [eax], 0x16
call fcn.004b03ff
cmp edi, dword [esi - 8]
jg 0x48970c
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
jmp 0x4895da
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.004891d0
add esp, 8
push dword [ebp - 0x18]
mov byte [ebp - 4], 3
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x489686
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
push eax
call fcn.00476560
mov ebx, dword [ebp + 8]
add eax, 0x10
mov edx, dword [ebp - 0x18]
or edi, 0xffffffff
add esp, 4
mov byte [ebp - 4], 2
add edx, 0xfffffff0
mov dword [ebx], eax
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x489634
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x48964f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4896ee
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.00488d60
mov edx, dword [ebp - 0x18]
or edi, 0xffffffff
add esp, 8
mov byte [ebp - 4], 2
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4896b4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4896cf
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x4896ee
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00476460
push 0x80070057
call fcn.00476460
int3