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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b177c
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x4ec00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x270], 0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x220]
call sym.Install_adv.exe_public:_void___thiscall_CNsInstaller::CheckDir_wchar_t_const___wchar_t_const__
lea ecx, [ebp - 0x224]
call fcn.004097c0
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x220]
mov eax, dword [edx + 0x16b0]
push eax
push 0x4cca80
lea ecx, [ebp - 0x224]
push ecx
call fcn.00409d70
add esp, 0x10
push 0x4cca8c
lea ecx, [ebp - 0x224]
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 - 0x22c], eax
cmp dword [ebp - 0x22c], 0
jne 0x4939e6
lea ecx, [ebp - 0x224]
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 0x4939af
lea ecx, [ebp - 0x224]
call fcn.0040dba0
push 0
push 0x4cca94
lea ecx, [ebp - 0x224]
call fcn.0040f4b0
mov esi, eax
lea ecx, [ebp - 0x224]
call fcn.004097f0
sub eax, 4
cmp esi, eax
jne 0x493936
lea ecx, [ebp - 0x224]
call fcn.004097f0
mov esi, eax
push 0x5c
lea ecx, [ebp - 0x224]
call fcn.00416d70
sub esi, eax
sub esi, 1
mov dword [ebp - 0x254], esi
mov edx, dword [ebp - 0x254]
push edx
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x224]
call fcn.004125e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24c]
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__
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24c]
call fcn.00409680
jmp 0x49394e
lea ecx, [ebp - 0x224]
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_CNsHook____cdecl_CNsHook::Instance_void_
mov ecx, eax
call sym.Install_adv.exe_public:_void___thiscall_CNsHook::CloseUsedProc_wchar_t_const__
push 0x4ccaa0
lea ecx, [ebp - 0x224]
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 - 0x22c], eax
cmp dword [ebp - 0x22c], 0
jne 0x4939ad
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x220]
call sym.Install_adv.exe_private:_void___thiscall_CNsInstaller::MovePos_struct_tagPacketInfo___struct__iobuf__
mov byte [ebp - 0x225], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.00409680
mov al, byte [ebp - 0x225]
jmp 0x493ced
jmp 0x4939e6
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x220]
call sym.Install_adv.exe_private:_void___thiscall_CNsInstaller::MovePos_struct_tagPacketInfo___struct__iobuf__
mov byte [ebp - 0x226], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.00409680
mov al, byte [ebp - 0x226]
jmp 0x493ced
lea ecx, [ebp - 0x248]
call fcn.004097c0
mov byte [ebp - 4], 2
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x248]
call fcn.004095c0
mov ecx, dword [ebp - 0x220]
add ecx, 0x15ec
call fcn.004097f0
test eax, eax
jne 0x493a6a
push 0
push 0x4ccaa8
lea ecx, [ebp - 0x248]
call fcn.0040f4b0
test eax, eax
jge 0x493a6a
mov dword [ebp - 0x21c], 1
lea ecx, [ebp - 0x224]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, dword [ebp - 0x220]
add ecx, 0x15f0
call fcn.0041fd00
mov dword [ebp - 0x23c], 0
jmp 0x493a85
mov edx, dword [ebp - 0x23c]
add edx, 1
mov dword [ebp - 0x23c], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x23c]
cmp ecx, dword [eax + 0x190]
jge 0x493cb0
push 8
push 0
lea edx, [ebp - 0x238]
push edx
call fcn.00433ca0
add esp, 0xc
mov eax, dword [ebp + 0xc]
push eax
push 1
push 8
lea ecx, [ebp - 0x238]
push ecx
call fcn.0043f624
add esp, 0x10
mov edx, dword [ebp - 0x238]
push edx
call fcn.0047ac4d
add esp, 4
mov dword [ebp - 0x258], eax
mov eax, dword [ebp - 0x258]
mov dword [ebp - 0x230], eax
mov ecx, dword [ebp - 0x238]
push ecx
mov edx, dword [ebp - 0x230]
push edx
mov eax, dword [ebp + 0xc]
push eax
call sym.Install_adv.exe_int___cdecl__NsReadFile_struct__iobuf___void___unsigned_long_int_
add esp, 0xc
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.0047ac4d
add esp, 4
mov dword [ebp - 0x25c], eax
mov edx, dword [ebp - 0x25c]
mov dword [ebp - 0x240], edx
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x264], eax
mov ecx, dword [ebp - 0x238]
sub ecx, 5
mov dword [ebp - 0x260], ecx
push 5
mov edx, 1
imul eax, edx, 0
add eax, dword [ebp - 0x230]
push eax
lea ecx, [ebp - 0x260]
push ecx
mov edx, 1
imul eax, edx, 5
add eax, dword [ebp - 0x230]
push eax
lea ecx, [ebp - 0x264]
push ecx
mov edx, 1
imul eax, edx, 0
add eax, dword [ebp - 0x240]
push eax
call fcn.004791b0
mov ecx, dword [ebp - 0x234]
push ecx
mov edx, dword [ebp - 0x240]
push edx
mov eax, dword [ebp - 0x22c]
push eax
call sym.Install_adv.exe_int___cdecl__NsWriteFile_struct__iobuf___void___unsigned_long_int_
add esp, 0xc
mov ecx, dword [ebp - 0x230]
mov dword [ebp - 0x268], ecx
mov edx, dword [ebp - 0x268]
push edx
call fcn.0047ac48
add esp, 4
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x26c], eax
mov ecx, dword [ebp - 0x26c]
push ecx
call fcn.0047ac48
add esp, 4
mov edx, dword [ebp - 0x220]
mov dword [ebp - 0x250], edx
mov eax, dword [ebp - 0x250]
cmp dword [eax + 0x14], 0
jl 0x493cab
jg 0x493bfe
mov ecx, dword [ebp - 0x250]
cmp dword [ecx + 0x10], 0
jbe 0x493cab
mov edx, dword [ebp - 0x220]
mov eax, dword [edx + 0x18]
add eax, 8
mov ecx, dword [edx + 0x1c]
adc ecx, 0
mov edx, dword [ebp - 0x220]
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], ecx
mov eax, dword [ebp - 0x238]
cdq
mov ecx, dword [ebp - 0x220]
add eax, dword [ecx + 0x18]
adc edx, dword [ecx + 0x1c]
mov ecx, dword [ebp - 0x220]
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], edx
mov edx, dword [ebp - 0x220]
push 0
push 0x2710
mov eax, dword [edx + 0x1c]
push eax
mov ecx, dword [edx + 0x18]
push ecx
call fcn.0047b0a0
mov ecx, dword [ebp - 0x220]
mov esi, dword [ecx + 0x14]
push esi
mov ecx, dword [ecx + 0x10]
push ecx
push edx
push eax
call fcn.0047b1e0
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0x2710
jl 0x493c86
mov dword [ebp - 0x244], 0x26ac
mov edx, dword [ebp - 0x220]
mov eax, dword [edx + 0x20]
push eax
mov ecx, dword [ebp - 0x244]
push ecx
push 0x7e9
mov edx, dword [ebp - 0x220]
mov eax, dword [edx]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x493a76
mov ecx, dword [ebp - 0x22c]
push ecx
call fcn.0043cf8f
add esp, 4
mov byte [ebp - 0x227], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x248]
call fcn.00409680
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.00409680
mov al, byte [ebp - 0x227]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042f10e
mov esp, ebp
pop ebp
ret 8