Function at 0x48e220
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b11b3
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push esi
mov eax, dword [0x4ec00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x14]
call fcn.004096a0
mov dword [ebp - 4], 0
push 0x4cdb40
lea ecx, [ebp - 0x14]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call fcn.0043ce99
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x48e375
lea ecx, [ebp - 0x14]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48e348
lea ecx, [ebp - 0x14]
call fcn.004097f0
mov esi, eax
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.00416d70
sub esi, eax
sub esi, 1
mov dword [ebp - 0x2c], esi
mov ecx, dword [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x14]
call fcn.004125e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call sym.Install_adv.exe_public:_static_class_CNsProcess____cdecl_CNsProcess::Instance_void_
mov ecx, eax
call sym.Install_adv.exe_public:_void___thiscall_CNsProcess::KillProcess_wchar_t_const__
push 0x4cdb48
lea ecx, [ebp - 0x14]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call fcn.0043ce99
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x48e33a
push 1
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.0043fa80
add esp, 0xc
mov byte [ebp - 0xd], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00409680
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00409680
mov al, byte [ebp - 0xd]
jmp 0x48e44f
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00409680
jmp 0x48e375
push 1
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0x14]
push eax
call fcn.0043fa80
add esp, 0xc
mov byte [ebp - 0xe], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00409680
mov al, byte [ebp - 0xe]
jmp 0x48e44f
mov dword [ebp - 0x1c], 0x100000
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0047ac4d
add esp, 4
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x24], edx
cmp dword [ebp + 0xc], 0
jl 0x48e41b
jg 0x48e3a3
cmp dword [ebp + 8], 0
jbe 0x48e41b
mov eax, dword [ebp + 0x14]
push eax
call fcn.0043f755
add esp, 4
test eax, eax
jne 0x48e41b
mov eax, dword [ebp - 0x1c]
cdq
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], edx
mov ecx, dword [ebp - 0x40]
cmp ecx, dword [ebp + 0xc]
jl 0x48e3d5
jg 0x48e3cf
mov edx, dword [ebp - 0x44]
cmp edx, dword [ebp + 8]
jbe 0x48e3d5
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
push 1
mov eax, dword [ebp - 0x24]
push eax
call fcn.0043f624
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x18]
push eax
call sym.Install_adv.exe_int___cdecl__NsWriteFile_struct__iobuf___void___unsigned_long_int_
add esp, 0xc
mov eax, dword [ebp - 0x28]
cdq
mov ecx, dword [ebp + 8]
sub ecx, eax
mov eax, dword [ebp + 0xc]
sbb eax, edx
mov dword [ebp + 8], ecx
mov dword [ebp + 0xc], eax
jmp 0x48e391
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
push edx
call fcn.0047ac48
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
call fcn.0043cf8f
add esp, 4
mov byte [ebp - 0xf], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00409680
mov al, byte [ebp - 0xf]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10