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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x472ab4
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x49c00c]
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.00406900
lea esi, [edi + 0x120]
mov dword [ebp - 4], 0
mov ecx, esi
mov dword [edi], vtable.CMainDlg.0
mov dword [ebp - 0x21c], esi
call fcn.00406900
mov dword [esi], vtable.CNsTips.0
call fcn.0040a540
mov ecx, eax
test ecx, ecx
je 0x40c49d
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40c4a7
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
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
mov byte [ebp - 4], 1
call fcn.0040a540
mov ecx, eax
test ecx, ecx
je 0x40c4ae
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40c4b8
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
add eax, 0x10
mov dword [edi + 0x23c], eax
lea ecx, [edi + 0x260]
mov byte [ebp - 4], 2
call sym.Install_adv.exe_public:_void___thiscall_CNsInstaller::constructor_void_
mov byte [ebp - 4], 3
mov dword [edi + 0xc0], 0x1e
mov dword [edi + 0x60], 0x6b
call sym.Install_adv.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 + 0x248], 0
mov dword [edi + 0x24c], 0
mov dword [edi + 0x250], 0
mov dword [edi + 0x254], 0
mov byte [edi + 0x11c], 0
call sym.Install_adv.exe_public:_static_class_CNsFont____cdecl_CNsFont::Instance_void_
mov ecx, eax
call sym.Install_adv.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_adv.exe_public:_static_class_CNsFont____cdecl_CNsFont::Instance_void_
mov ecx, eax
call sym.Install_adv.exe_public:_int___thiscall_CNsFont::GetDefaultSize_void_
add eax, 2
push eax
call sym.Install_adv.exe_public:_static_class_CNsFont____cdecl_CNsFont::Instance_void_
mov ecx, eax
call sym.Install_adv.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_adv.exe_public:_static_class_CNsFont____cdecl_CNsFont::Instance_void_
mov ecx, eax
call sym.Install_adv.exe_public:_int___thiscall_CNsFont::GetDefaultSize_void_
lea eax, [eax + eax*2]
push eax
call sym.Install_adv.exe_public:_static_class_CNsFont____cdecl_CNsFont::Instance_void_
mov ecx, eax
call sym.Install_adv.exe_public:_struct_HFONT______thiscall_CNsFont::GetFont_int__wchar_t_const___int__int__int_
push 0x208
mov dword [edi + 0x234], eax
lea eax, [ebp - 0x218]
push 0
push eax
mov dword [edi + 0x244], 0
mov dword [edi + 0x240], 0
call fcn.0042b9d0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.0040a540
mov ecx, eax
test ecx, ecx
je 0x40c4bf
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40c4c9
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
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.00409720
test al, al
jne 0x40c3a2
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c380
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.00409900
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x21c]
mov ebx, dword [esi - 0xc]
test ebx, ebx
js 0x40c4d0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x40c3da
push ebx
lea ecx, [ebp - 0x21c]
call fcn.00409bc0
mov esi, dword [ebp - 0x21c]
lea eax, [ebx + 1]
push eax
push esi
call fcn.004317dc
add esp, 8
cmp ebx, dword [esi - 8]
jg 0x40c4d0
push 0x487920
xor eax, eax
mov dword [esi - 0xc], ebx
push 0x487928
lea ecx, [ebp - 0x21c]
mov word [esi + ebx*2], ax
call fcn.0040d860
mov esi, dword [ebp - 0x21c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c422
push esi
jmp 0x40c429
lea eax, [ebp - 0x218]
push eax
call sym.Install_adv.exe_long_long___int64____cdecl_FileSize_wchar_t_const__
add esp, 4
test edx, edx
jg 0x40c447
jl 0x40c43e
cmp eax, 0x12c00000
jae 0x40c447
mov byte [edi + 0x258], 0
jmp 0x40c44e
mov byte [edi + 0x258], 1
mov byte [ebp - 4], 3
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40c47f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40c4da
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
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.00429d20
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040a610
call edx
jmp 0x40c19d
push 0x80004005
call fcn.0040a610
call edx
jmp 0x40c20e
push 0x80004005
call fcn.0040a610
call edx
jmp 0x40c350
push 0x80070057
call fcn.0040a610
call edx
jmp 0x40c47f