Function at 0x487330
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62998c
mov eax, dword fs:[0]
push eax
sub esp, 0x468
mov eax, dword [0x6d1554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
mov eax, 0x65503c
mov edi, dword [ebp + 0x10]
test ecx, ecx
mov dword [0x6d7d2c], 1
cmovne eax, ecx
lea ecx, [ebp - 0x470]
push eax
call fcn.0047cc90
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.005c88b0
xor eax, eax
mov dword [ebp - 0x42c], 0
add esp, 0xc
mov dword [ebp - 0x428], 7
mov word [ebp - 0x43c], ax
mov eax, dword [ebp - 0x470]
mov byte [ebp - 4], 1
cmp dword [eax - 0xc], 0
jne 0x48757c
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x218]
mov eax, ecx
mov edx, 0x104
sub esi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x487401
movzx eax, word [esi + ecx]
test ax, ax
je 0x487401
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x4873e3
lea eax, [ecx - 2]
test edx, edx
push 0x65592c
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x20a
lea eax, [ebp - 0x424]
push 0
push eax
call fcn.005c88b0
add esp, 0xc
lea eax, [ebp - 0x424]
push 0x104
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov dword [ebp - 0x444], 0
lea ecx, [ebp - 0x424]
mov dword [ebp - 0x440], 7
mov word [ebp - 0x454], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x487473
sub ecx, edx
lea eax, [ebp - 0x424]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x454]
call fcn.00483a10
push 0
lea eax, [ebp - 0x454]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x46c]
push eax
call fcn.0048f9d0
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x43c]
cmp eax, esi
je 0x4874ee
mov ecx, eax
call fcn.004832e0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x43c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x42c], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x46c]
call fcn.0047cf30
lea ecx, [ebp - 0x454]
mov byte [ebp - 4], 1
call fcn.0047cf30
test edi, edi
je 0x48754c
cmp word [edi], 0
je 0x48754c
push 1
push 0x655934
lea ecx, [ebp - 0x43c]
call fcn.004837a0
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x487530
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x43c]
call fcn.004837a0
cmp dword [ebp - 0x428], 8
lea eax, [ebp - 0x43c]
cmovae eax, dword [ebp - 0x43c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x470]
push 0x655938
push eax
call fcn.0047e8a0
add esp, 0x10
push 0x65594c
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0x474]
push eax
call fcn.0047d070
add esp, 0xc
push dword [ebp - 0x474]
mov byte [ebp - 4], 3
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [0x6d1068]
test eax, eax
mov edx, 0xf
cmovne ecx, edx
mov dword [0x6d1068], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push dword [0x6d1070]
mov ecx, 0x6d7d30
call fcn.0048c640
lea eax, [ebp - 0x470]
mov ecx, 0x6d7d30
push eax
call fcn.0048c520
mov edx, dword [ebp - 0x474]
or esi, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x487608
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x428]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x487648
mov ecx, dword [ebp - 0x43c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48763e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4876a2
push edx
push ecx
call fcn.0054dcd5
add esp, 8
mov edx, dword [ebp - 0x470]
xor eax, eax
mov dword [ebp - 0x42c], 0
add edx, 0xfffffff0
mov dword [ebp - 0x428], 7
mov word [ebp - 0x43c], ax
mov dword [ebp - 4], 0xffffffff
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x487687
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054e0f3
mov esp, ebp
pop ebp
ret
call fcn.005d2e9f
int3