Function at 0x4868c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dbc15
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x51a3c4]
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.00486670
add esp, 8
push dword [ebp - 0x14]
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48695d
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
push eax
call fcn.00475f90
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 0x486b8e
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.004762a0
mov ecx, eax
test ecx, ecx
je 0x486ba2
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, 0x4e1804
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
test eax, 0xffff0000
jne 0x486995
movzx eax, ax
push eax
call fcn.0047df50
jmp 0x4869a1
push 3
push 0x4e1804
call fcn.00476770
mov byte [ebp - 4], 2
test ebx, ebx
je 0x486a77
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4869b2
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 0x486bac
push ecx
push ebx
call fcn.004b1033
mov ecx, 0x7fffffff
mov dword [ebp - 0x24], eax
sub ecx, eax
add esp, 8
cmp ecx, edi
jl 0x486bac
add edi, eax
js 0x486bac
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x486a1a
push edi
lea ecx, [ebp - 0x10]
call fcn.004763d0
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
lea edx, [esi + eax*2]
cmp eax, ecx
jbe 0x486a29
mov edx, ebx
lea eax, [esi + ecx*2]
mov ecx, dword [ebp - 0x24]
add ecx, ecx
je 0x486a63
test eax, eax
je 0x486a53
push ecx
test edx, edx
je 0x486a48
push edx
push eax
call fcn.004a88a0
add esp, 0xc
jmp 0x486a63
push 0
push eax
call fcn.004a8e20
add esp, 0xc
call fcn.004b0efe
mov dword [eax], 0x16
call fcn.004aba6f
cmp edi, dword [esi - 8]
jg 0x486bac
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
jmp 0x486a7a
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.00486670
add esp, 8
push dword [ebp - 0x18]
mov byte [ebp - 4], 3
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x486b26
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
push eax
call fcn.00475f90
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 0x486ad4
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 0x486aef
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 0x486b8e
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.00486200
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 0x486b54
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 0x486b6f
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 0x486b8e
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.00475e90
push 0x80070057
call fcn.00475e90
int3