Function at 0x48a570
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571128
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x3158
call fcn.00529480
mov eax, dword [0x5c1334]
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 0x48a5e0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x309c]
call fcn.0043e6f0
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 0x48a657
mov ecx, ebx
call fcn.0048a110
cmp dword [ebx + 0x38], 8
lea esi, [ebx + 0x24]
mov eax, esi
jb 0x48a664
mov eax, dword [esi]
push eax
call fcn.00487990
cmp eax, dword [ebx + 0x20]
jbe 0x48ac0a
cmp byte [ebx + 0x55], 0
je 0x48aa91
cmp dword [esi + 0x14], 8
jb 0x48a685
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 0x48a690
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 0x48a6e0
sub ecx, edx
lea eax, [ebp - 0x854]
sar ecx, 1
cmp ecx, 7
ja 0x48a720
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 0x48a73b
push ecx
push eax
mov byte [ebp - 0x30a0], 0
push dword [ebp - 0x30a0]
push ecx
lea ecx, [ebp - 0x306c]
call fcn.0043df50
mov edx, dword [ebp - 0x3058]
mov eax, edx
mov ecx, dword [ebp - 0x305c]
sub eax, ecx
cmp eax, 1
jb 0x48a784
cmp edx, 8
lea esi, [ebp - 0x306c]
push 2
cmovae esi, dword [ebp - 0x306c]
lea edi, [ecx + 1]
push 0x5988ec
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 0x48a7a5
push 1
push 0x5988ec
mov byte [ebp - 0x30a0], 0
lea ecx, [ebp - 0x306c]
push dword [ebp - 0x30a0]
push 1
call fcn.0043df50
push 1
lea ecx, [ebp - 0x306c]
call fcn.004873e0
mov esi, eax
mov edx, dword [esi + 0x14]
mov eax, edx
mov ecx, dword [esi + 0x10]
sub eax, ecx
cmp eax, 4
jb 0x48a7eb
lea edi, [ecx + 4]
mov dword [esi + 0x10], edi
cmp edx, 8
jb 0x48a7d0
mov esi, dword [esi]
push 8
lea eax, [esi + ecx*2]
push str..log
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x48a810
push 4
push str..log
mov byte [ebp - 0x30a0], 0
mov ecx, esi
push dword [ebp - 0x30a0]
push 4
call fcn.0043df50
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 0x48aa45
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 0x48a843
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 0x48a89e
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 0x48a8bf
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.0043df50
mov edx, dword [ebp - 0x3058]
mov eax, edx
mov ecx, dword [ebp - 0x305c]
sub eax, ecx
cmp eax, 1
jb 0x48a908
cmp edx, 8
lea esi, [ebp - 0x306c]
push 2
cmovae esi, dword [ebp - 0x306c]
lea edi, [ecx + 1]
push 0x5988ec
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 0x48a929
push 1
push 0x5988ec
mov byte [ebp - 0x30b0], 0
lea ecx, [ebp - 0x306c]
push dword [ebp - 0x30b0]
push 1
call fcn.0043df50
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 0x48a951
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 0x48a9a9
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 0x48a9c7
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.0043df50
mov edx, dword [ebp - 0x3058]
mov eax, edx
mov ecx, dword [ebp - 0x305c]
sub eax, ecx
cmp eax, 4
jb 0x48aa19
cmp edx, 8
lea esi, [ebp - 0x306c]
push 8
cmovae esi, dword [ebp - 0x306c]
lea edi, [ecx + 4]
push str..log
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 0x48a810
push 4
push str..log
mov byte [ebp - 0x30a4], 0
lea ecx, [ebp - 0x306c]
push dword [ebp - 0x30a4]
push 4
call fcn.0043df50
mov ebx, dword [ebp - 0x30a0]
jmp 0x48a810
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x3058]
cmp edx, 8
jb 0x48aa8b
mov ecx, dword [ebp - 0x306c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48aa81
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x48aa81
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.005283f2
add esp, 8
mov ebx, dword [ebp - 0x30a8]
cmp dword [ebx + 0x38], 8
lea eax, [ebx + 0x24]
jb 0x48aa9c
mov eax, dword [eax]
sub esp, 8
lea ecx, [ebp - 0x3168]
push 0x10
push eax
call fcn.0048b820
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.0048ba40
lea edx, [ebp - 0x3054]
lea ecx, [ebp - 0x3084]
call fcn.004874f0
lea eax, [ebp - 0x306c]
mov byte [ebp - 4], 6
push eax
call fcn.00487b80
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x48ab14
mov eax, dword [eax]
push ecx
mov edx, eax
lea ecx, [ebp - 0x3168]
call fcn.00439b70
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.00439b70
add esp, 4
push eax
call fcn.0046e430
mov byte [ebp - 4], 6
add esp, 4
mov edx, dword [ebp - 0x3058]
cmp edx, 0x10
jb 0x48ab92
mov ecx, dword [ebp - 0x306c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x48ab88
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x48ab88
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.005283f2
add esp, 8
lea ecx, [ebp - 0x3164]
call fcn.00438050
test eax, eax
jne 0x48abcc
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.0043c9b0
mov edx, dword [ebp - 0x3070]
cmp edx, 0x10
jb 0x48ad2a
mov ecx, dword [ebp - 0x3084]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x48ad20
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x48ad20
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
cmp dword [esi + 0x14], 8
jb 0x48ac12
mov esi, dword [esi]
sub esp, 8
lea ecx, [ebp - 0x3168]
push 8
push esi
call fcn.0048b820
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.0048ba40
lea edx, [ebp - 0x3054]
lea ecx, [ebp - 0x3084]
call fcn.004874f0
lea eax, [ebp - 0x306c]
mov byte [ebp - 4], 9
push eax
call fcn.00487b80
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x48ac8a
mov eax, dword [eax]
push ecx
mov edx, eax
lea ecx, [ebp - 0x3168]
call fcn.00439b70
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.00439b70
add esp, 4
push eax
call fcn.0046e430
mov byte [ebp - 4], 9
add esp, 4
mov edx, dword [ebp - 0x3058]
cmp edx, 0x10
jb 0x48ad08
mov ecx, dword [ebp - 0x306c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x48acfe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x48acfe
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.005283f2
add esp, 8
lea ecx, [ebp - 0x3164]
call fcn.00438050
test eax, eax
jne 0x48abcc
jmp 0x48aba1
push edx
push ecx
call fcn.005283f2
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 0x48ad5e
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebp - 0x3088]
cmp edx, 8
jb 0x48ada5
mov ecx, dword [ebp - 0x309c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48ad9b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48ac04
push edx
push ecx
call fcn.005283f2
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.00528802
mov esp, ebp
pop ebp
ret