Function at 0x48e500
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dff45
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x520404]
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.0048e2b0
add esp, 8
push dword [ebp - 0x14]
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48e59d
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
push eax
call fcn.00477fc0
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 0x48e7ce
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.004782d0
mov ecx, eax
test ecx, ecx
je 0x48e7e2
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, 0x4e6954
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
test eax, 0xffff0000
jne 0x48e5d5
movzx eax, ax
push eax
call fcn.00481360
jmp 0x48e5e1
push 3
push 0x4e6954
call fcn.00478540
mov byte [ebp - 4], 2
test ebx, ebx
je 0x48e6b7
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48e5f2
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 0x48e7ec
push ecx
push ebx
call fcn.004b4b67
mov ecx, SysReAllocString
mov dword [ebp - 0x24], eax
sub ecx, eax
add esp, 8
cmp ecx, edi
jl 0x48e7ec
add edi, eax
js 0x48e7ec
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x48e65a
push edi
lea ecx, [ebp - 0x10]
call fcn.00478400
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
lea edx, [esi + eax*2]
cmp eax, ecx
jbe 0x48e669
mov edx, ebx
lea eax, [esi + ecx*2]
mov ecx, dword [ebp - 0x24]
add ecx, ecx
je 0x48e6a3
test eax, eax
je 0x48e693
push ecx
test edx, edx
je 0x48e688
push edx
push eax
call fcn.004ac280
add esp, 0xc
jmp 0x48e6a3
push 0
push eax
call fcn.004ac800
add esp, 0xc
call fcn.004b4a32
mov dword [eax], 0x16
call fcn.004af44f
cmp edi, dword [esi - 8]
jg 0x48e7ec
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
jmp 0x48e6ba
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.0048e2b0
add esp, 8
push dword [ebp - 0x18]
mov byte [ebp - 4], 3
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48e766
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
push eax
call fcn.00477fc0
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 0x48e714
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 0x48e72f
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 0x48e7ce
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.0048dc00
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 0x48e794
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 0x48e7af
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 0x48e7ce
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.00477ec0
push 0x80070057
call fcn.00477ec0
int3