Function at 0x4881d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64595c
mov eax, dword fs:[0]
push eax
sub esp, 0x468
mov eax, dword [0x6f36d4]
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, 0x6730dc
mov edi, dword [ebp + 0x10]
test ecx, ecx
mov dword [0x6fa688], 1
cmovne eax, ecx
lea ecx, [ebp - 0x470]
push eax
call fcn.0047d470
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.005d9d70
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 0x48841c
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 0x4882a1
movzx eax, word [esi + ecx]
test ax, ax
je 0x4882a1
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x488283
lea eax, [ecx - 2]
test edx, edx
push 0x673a7c
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.005d9d70
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 0x488313
sub ecx, edx
lea eax, [ebp - 0x424]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x454]
call fcn.00484230
push 0
lea eax, [ebp - 0x454]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x46c]
push eax
call fcn.004908b0
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x43c]
cmp eax, esi
je 0x48838e
mov ecx, eax
call fcn.00483b00
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.0047d710
lea ecx, [ebp - 0x454]
mov byte [ebp - 4], 1
call fcn.0047d710
test edi, edi
je 0x4883ec
cmp word [edi], 0
je 0x4883ec
push 1
push 0x673a84
lea ecx, [ebp - 0x43c]
call fcn.00483fc0
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4883d0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x43c]
call fcn.00483fc0
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 0x673a88
push eax
call fcn.0047f080
add esp, 0x10
push 0x673a9c
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0x474]
push eax
call fcn.0047d850
add esp, 0xc
push dword [ebp - 0x474]
mov byte [ebp - 4], 3
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [0x6f3070]
test eax, eax
mov edx, 0xf
cmovne ecx, edx
mov dword [0x6f3070], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push dword [0x6f306c]
mov ecx, 0x6fa690
call fcn.0048d530
lea eax, [ebp - 0x470]
mov ecx, 0x6fa690
push eax
call fcn.0048d440
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 0x4884a8
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 0x4884e8
mov ecx, dword [ebp - 0x43c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4884de
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x488542
push edx
push ecx
call fcn.0055d2a5
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 0x488527
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.0055d6c3
mov esp, ebp
pop ebp
ret
call fcn.005e3e64
int3