Function at 0x40bc50
Capabilities:
Check if file exists
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4abae4
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4eb00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x220], edi
call fcn.00406a90
lea esi, [edi + 0x11c]
mov dword [ebp - 4], 0
mov ecx, esi
mov dword [edi], vtable.CMainDlg.0
mov dword [ebp - 0x21c], esi
call fcn.00406a90
mov dword [esi], vtable.CNsTips.0
call fcn.0040a520
mov ecx, eax
test ecx, ecx
je 0x40bfaa
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0xfc], eax
mov dword [esi + 0x108], 0
mov dword [esi + 0x100], 0
mov dword [esi + 0xdc], 0xec55
mov word [esi + 0x10c], 0
mov dword [esi + 0xc0], 0
mov byte [esi + 0x10e], 1
mov dword [esi], vtable.CNsTips2.0
lea ecx, [edi + 0x250]
mov byte [ebp - 4], 1
call sym.Install_vip.exe_public:_void___thiscall_CNsInstaller::constructor_void_
mov byte [ebp - 4], 2
call fcn.0040a520
mov ecx, eax
test ecx, ecx
je 0x40bfb4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x2fb0], eax
mov byte [ebp - 4], 3
mov dword [edi + 0xc0], 0x1e
mov dword [edi + 0x60], 0x6b
call sym.Install_vip.exe_public:_static_class_CNsApp____cdecl_CNsApp::Instance_void_
push 0x6b
push dword [eax]
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [edi + 0xfc], eax
mov byte [edi + 0x23c], 0
mov dword [edi + 0x240], 0
mov dword [edi + 0x244], 0
mov dword [edi + 0x248], 0
mov byte [edi + 0x22c], 0
call sym.Install_vip.exe_public:_static_class_CNsFont____cdecl_CNsFont::Instance_void_
mov ecx, eax
call sym.Install_vip.exe_public:_int___thiscall_CNsFont::isSupportYaHei_void_
neg eax
push 0
sbb eax, eax
push 0
and eax, 0xfffffffe
add eax, 2
push 1
push 0
mov dword [edi + 0x238], eax
call sym.Install_vip.exe_public:_static_class_CNsFont____cdecl_CNsFont::Instance_void_
mov ecx, eax
call sym.Install_vip.exe_public:_int___thiscall_CNsFont::GetDefaultSize_void_
add eax, 2
push eax
call sym.Install_vip.exe_public:_static_class_CNsFont____cdecl_CNsFont::Instance_void_
mov ecx, eax
call sym.Install_vip.exe_public:_struct_HFONT______thiscall_CNsFont::GetFont_int__wchar_t_const___int__int__int_
push 0
push 0
push 1
push 0
mov dword [edi + 0x230], eax
call sym.Install_vip.exe_public:_static_class_CNsFont____cdecl_CNsFont::Instance_void_
mov ecx, eax
call sym.Install_vip.exe_public:_int___thiscall_CNsFont::GetDefaultSize_void_
add eax, 0x26
push eax
call sym.Install_vip.exe_public:_static_class_CNsFont____cdecl_CNsFont::Instance_void_
mov ecx, eax
call sym.Install_vip.exe_public:_struct_HFONT______thiscall_CNsFont::GetFont_int__wchar_t_const___int__int__int_
mov dword [edi + 0x234], eax
lea eax, [edi + 0x2fbc]
push eax
push 0x4c9384
push 0x1f42
mov dword [edi + 0x2fb8], 0
mov dword [edi + 0x2fc0], 0
mov dword [eax], 0
call sym.Install_vip.exe_int___cdecl_NsResGetBuff_int__wchar_t_const___void__
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00433560
add esp, 0x18
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.0040a520
mov ecx, eax
test ecx, ecx
je 0x40bfbe
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x21c]
call fcn.00409810
test al, al
jne 0x40bec4
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bea2
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.004099c0
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x21c]
mov ebx, dword [esi - 0xc]
test ebx, ebx
js 0x40bfc8
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x40befc
push ebx
lea ecx, [ebp - 0x21c]
call fcn.00409c40
mov esi, dword [ebp - 0x21c]
lea eax, [ebx + 1]
push eax
push esi
call fcn.0043978f
add esp, 8
cmp ebx, dword [esi - 8]
jg 0x40bfc8
push 0x4c938c
xor eax, eax
mov dword [esi - 0xc], ebx
push 0x4c9394
lea ecx, [ebp - 0x21c]
mov word [esi + ebx*2], ax
call fcn.0040d470
mov esi, dword [ebp - 0x21c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40bf44
push esi
jmp 0x40bf4b
lea eax, [ebp - 0x218]
push eax
call sym.Install_vip.exe_long_long___int64____cdecl_FileSize_wchar_t_const__
add esp, 4
test edx, edx
jg 0x40bf69
jl 0x40bf60
cmp eax, 0x12c00000
jae 0x40bf69
mov byte [edi + 0x2fb4], 0
jmp 0x40bf70
mov byte [edi + 0x2fb4], 1
mov byte [ebp - 4], 3
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40bf8c
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042e9de
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040a620
push 0x80004005
call fcn.0040a620
push 0x80004005
call fcn.0040a620
push 0x80070057
call fcn.0040a620
int3