Function at 0x486b00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d1b8
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x3158
call fcn.00524940
mov eax, dword [0x5bc324]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edx, dword [ebp + 0xc]
xor eax, eax
mov ebx, dword [ebp + 8]
mov ecx, edx
mov dword [ebp - 0x30a8], ebx
mov dword [ebp - 0x30b8], ebx
mov dword [ebp - 0x308c], 0
mov dword [ebp - 0x3088], 7
lea esi, [ecx + 2]
mov word [ebp - 0x309c], ax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x486b70
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x309c]
call fcn.0043e6b0
push 0x2800
lea eax, [ebp - 0x3054]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp - 0x3088], 8
lea ecx, [ebp + 0x10]
lea eax, [ebp - 0x309c]
cmovae eax, dword [ebp - 0x309c]
push ecx
push eax
lea eax, [ebp - 0x3054]
push eax
call dword [sym.imp.USER32.dll_wvsprintfW]
mov dword [ebp - 4], 0
mov byte [ebp - 4], 3
cmp byte [ebx + 0x54], 0
je 0x486be7
mov ecx, ebx
call fcn.004866a0
cmp dword [ebx + 0x38], 8
lea esi, [ebx + 0x24]
mov eax, esi
jb 0x486bf4
mov eax, dword [esi]
push eax
call fcn.00483fa0
cmp eax, dword [ebx + 0x20]
jbe 0x48719a
cmp byte [ebx + 0x55], 0
je 0x487021
cmp dword [esi + 0x14], 8
jb 0x486c15
mov esi, dword [esi]
lea ecx, [ebp - 0x854]
sub ecx, esi
nop dword [eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x486c20
lea eax, [ebp - 0x854]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
xor eax, eax
mov dword [ebp - 0x305c], 0
mov dword [ebp - 0x3058], 7
mov word [ebp - 0x306c], ax
lea ecx, [ebp - 0x854]
mov byte [ebp - 4], 4
lea ebx, [eax + 1]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x486c70
sub ecx, edx
lea eax, [ebp - 0x854]
sar ecx, 1
cmp ecx, 7
ja 0x486cb0
lea esi, [ecx + ecx]
mov dword [ebp - 0x305c], ecx
push esi
push eax
lea eax, [ebp - 0x306c]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x306c], ax
jmp 0x486ccb
push ecx
push eax
mov byte [ebp - 0x30a0], 0
push dword [ebp - 0x30a0]
push ecx
lea ecx, [ebp - 0x306c]
call fcn.0043df10
mov edx, dword [ebp - 0x3058]
mov eax, edx
mov ecx, dword [ebp - 0x305c]
sub eax, ecx
cmp eax, 1
jb 0x486d14
cmp edx, 8
lea esi, [ebp - 0x306c]
push 2
cmovae esi, dword [ebp - 0x306c]
lea edi, [ecx + 1]
push 0x594624
mov dword [ebp - 0x305c], edi
lea eax, [esi + ecx*2]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x486d35
push 1
push 0x594624
mov byte [ebp - 0x30a0], 0
lea ecx, [ebp - 0x306c]
push dword [ebp - 0x30a0]
push 1
call fcn.0043df10
push 1
lea ecx, [ebp - 0x306c]
call fcn.004839f0
mov esi, eax
mov edx, dword [esi + 0x14]
mov eax, edx
mov ecx, dword [esi + 0x10]
sub eax, ecx
cmp eax, 4
jb 0x486d7b
lea edi, [ecx + 4]
mov dword [esi + 0x10], edi
cmp edx, 8
jb 0x486d60
mov esi, dword [esi]
push 8
lea eax, [esi + ecx*2]
push 0x594628
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x486da0
push 4
push 0x594628
mov byte [ebp - 0x30a0], 0
mov ecx, esi
push dword [ebp - 0x30a0]
push 4
call fcn.0043df10
nop dword [eax + eax]
cmp dword [ebp - 0x3058], 8
lea eax, [ebp - 0x306c]
cmovae eax, dword [ebp - 0x306c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x486fd5
inc ebx
lea ecx, [ebp - 0x854]
mov dword [ebp - 0x30a0], ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x486dd3
mov ebx, dword [ebp - 0x3058]
sub ecx, edx
mov edx, dword [ebp - 0x305c]
mov eax, ebx
sar ecx, 1
sub eax, edx
cmp ecx, eax
ja 0x486e2e
cmp ebx, 8
lea eax, [ecx + ecx]
push eax
lea esi, [ebp - 0x306c]
cmovae esi, dword [ebp - 0x306c]
lea eax, [ebp - 0x854]
push eax
lea edi, [edx + ecx]
mov dword [ebp - 0x305c], edi
lea eax, [esi + edx*2]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x486e4f
push ecx
lea eax, [ebp - 0x854]
mov byte [ebp - 0x30ac], 0
push eax
push dword [ebp - 0x30ac]
push ecx
lea ecx, [ebp - 0x306c]
call fcn.0043df10
mov edx, dword [ebp - 0x3058]
mov eax, edx
mov ecx, dword [ebp - 0x305c]
sub eax, ecx
cmp eax, 1
jb 0x486e98
cmp edx, 8
lea esi, [ebp - 0x306c]
push 2
cmovae esi, dword [ebp - 0x306c]
lea edi, [ecx + 1]
push 0x594624
mov dword [ebp - 0x305c], edi
lea eax, [esi + ecx*2]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x486eb9
push 1
push 0x594624
mov byte [ebp - 0x30b0], 0
lea ecx, [ebp - 0x306c]
push dword [ebp - 0x30b0]
push 1
call fcn.0043df10
push 0x40
lea eax, [ebp - 0x54]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0xa
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x30a0]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itow]
lea ecx, [ebp - 0x54]
add esp, 0x18
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x486ee1
mov ebx, dword [ebp - 0x3058]
sub ecx, edx
mov edx, dword [ebp - 0x305c]
mov eax, ebx
sar ecx, 1
sub eax, edx
cmp ecx, eax
ja 0x486f39
cmp ebx, 8
lea eax, [ecx + ecx]
push eax
lea esi, [ebp - 0x306c]
cmovae esi, dword [ebp - 0x306c]
lea eax, [ebp - 0x54]
push eax
lea edi, [edx + ecx]
mov dword [ebp - 0x305c], edi
lea eax, [esi + edx*2]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x486f57
push ecx
lea eax, [ebp - 0x54]
mov byte [ebp - 0x30b4], 0
push eax
push dword [ebp - 0x30b4]
push ecx
lea ecx, [ebp - 0x306c]
call fcn.0043df10
mov edx, dword [ebp - 0x3058]
mov eax, edx
mov ecx, dword [ebp - 0x305c]
sub eax, ecx
cmp eax, 4
jb 0x486fa9
cmp edx, 8
lea esi, [ebp - 0x306c]
push 8
cmovae esi, dword [ebp - 0x306c]
lea edi, [ecx + 4]
push 0x594628
mov dword [ebp - 0x305c], edi
lea eax, [esi + ecx*2]
push eax
call sub.VCRUNTIME140.dll_memmove
mov ebx, dword [ebp - 0x30a0]
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x486da0
push 4
push 0x594628
mov byte [ebp - 0x30a4], 0
lea ecx, [ebp - 0x306c]
push dword [ebp - 0x30a4]
push 4
call fcn.0043df10
mov ebx, dword [ebp - 0x30a0]
jmp 0x486da0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x3058]
cmp edx, 8
jb 0x48701b
mov ecx, dword [ebp - 0x306c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x487011
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x487011
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0052365a
add esp, 8
mov ebx, dword [ebp - 0x30a8]
cmp dword [ebx + 0x38], 8
lea eax, [ebx + 0x24]
jb 0x48702c
mov eax, dword [eax]
sub esp, 8
lea ecx, [ebp - 0x3168]
push 0x10
push eax
call fcn.00487de0
sub esp, 0x18
mov byte [ebp - 4], 5
mov eax, esp
lea ecx, [ebp - 0x3168]
xorps xmm0, xmm0
mov dword [eax], 2
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
movq qword [eax + 0x10], xmm0
call fcn.00488000
lea edx, [ebp - 0x3054]
lea ecx, [ebp - 0x3084]
call fcn.00483b00
lea eax, [ebp - 0x306c]
mov byte [ebp - 4], 6
push eax
call fcn.00484190
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x4870a4
mov eax, dword [eax]
push ecx
mov edx, eax
lea ecx, [ebp - 0x3168]
call fcn.00439b30
add esp, 4
lea edx, [ebp - 0x3084]
cmp dword [ebp - 0x3070], 0x10
mov ecx, eax
cmovae edx, dword [ebp - 0x3084]
push dword [ebp - 0x3074]
call fcn.00439b30
add esp, 4
push eax
call fcn.0046d970
mov byte [ebp - 4], 6
add esp, 4
mov edx, dword [ebp - 0x3058]
cmp edx, 0x10
jb 0x487122
mov ecx, dword [ebp - 0x306c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x487118
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x487118
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0052365a
add esp, 8
lea ecx, [ebp - 0x3164]
call fcn.00438010
test eax, eax
jne 0x48715c
mov eax, dword [ebp - 0x3168]
lea ecx, [ebp - 0x3168]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.0043c970
mov edx, dword [ebp - 0x3070]
cmp edx, 0x10
jb 0x4872ba
mov ecx, dword [ebp - 0x3084]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4872b0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4872b0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
cmp dword [esi + 0x14], 8
jb 0x4871a2
mov esi, dword [esi]
sub esp, 8
lea ecx, [ebp - 0x3168]
push 8
push esi
call fcn.00487de0
sub esp, 0x18
mov byte [ebp - 4], 8
mov eax, esp
lea ecx, [ebp - 0x3168]
xorps xmm0, xmm0
mov dword [eax], 2
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
movq qword [eax + 0x10], xmm0
call fcn.00488000
lea edx, [ebp - 0x3054]
lea ecx, [ebp - 0x3084]
call fcn.00483b00
lea eax, [ebp - 0x306c]
mov byte [ebp - 4], 9
push eax
call fcn.00484190
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x48721a
mov eax, dword [eax]
push ecx
mov edx, eax
lea ecx, [ebp - 0x3168]
call fcn.00439b30
add esp, 4
lea edx, [ebp - 0x3084]
cmp dword [ebp - 0x3070], 0x10
mov ecx, eax
cmovae edx, dword [ebp - 0x3084]
push dword [ebp - 0x3074]
call fcn.00439b30
add esp, 4
push eax
call fcn.0046d970
mov byte [ebp - 4], 9
add esp, 4
mov edx, dword [ebp - 0x3058]
cmp edx, 0x10
jb 0x487298
mov ecx, dword [ebp - 0x306c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x48728e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x48728e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0052365a
add esp, 8
lea ecx, [ebp - 0x3164]
call fcn.00438010
test eax, eax
jne 0x48715c
jmp 0x487131
push edx
push ecx
call fcn.0052365a
add esp, 8
lea ecx, [ebp - 0x3168]
mov dword [ebp - 0x3074], 0
mov dword [ebp - 0x3070], 0xf
mov byte [ebp - 0x3084], 0
call fcn.004336e0
jmp 0x4872ee
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebp - 0x3088]
cmp edx, 8
jb 0x487335
mov ecx, dword [ebp - 0x309c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48732b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x487194
push edx
push ecx
call fcn.0052365a
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00523a6a
mov esp, ebp
pop ebp
ret