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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45dc9d
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x475080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push esi
mov dword [ebp - 0x220], esi
call fcn.00402b30
lea eax, [esi + 0x120]
xor edi, edi
mov dword [ebp - 4], edi
push eax
mov dword [esi], vtable.CMainDlg.0
call fcn.00407e10
mov ebx, 1
lea ecx, [esi + 0x258]
mov byte [ebp - 4], bl
call sym.Install_vip.exe_public:_void___thiscall_CNsInstaller::constructor_void_
mov byte [ebp - 4], 2
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [esi + 0x19b8], eax
mov byte [ebp - 4], 3
mov dword [esi + 0xc0], 0x1e
mov dword [esi + 0x60], 0x6b
test byte [0x4780d0], bl
jne 0x4080ca
or dword [0x4780d0], ebx
mov ecx, 0x4780d8
call sym.Install_vip.exe_public:_void___thiscall_CNsApp::constructor_void_
push 0x45de80
call fcn.0041daac
add esp, 4
movzx ecx, word [esi + 0x60]
mov edx, dword [0x4780d8]
push ecx
push edx
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [esi + 0x100], eax
fldz
mov byte [esi + 0x244], 0
fstp dword [esi + 0x24c]
mov dword [esi + 0x248], edi
mov dword [esi + 0x250], edi
mov byte [esi + 0x234], 0
test byte [0x47849c], bl
jne 0x408131
or dword [0x47849c], ebx
mov ecx, 0x4784a0
mov byte [ebp - 4], 4
call sym.Install_vip.exe_public:_void___thiscall_CNsFont::constructor_void_
push 0x45de90
call fcn.0041daac
add esp, 4
mov byte [ebp - 4], 3
mov ecx, 0x4784a0
call sym.Install_vip.exe_public:_int___thiscall_CNsFont::isSupportYaHei_void_
neg eax
sbb eax, eax
and eax, 0xfffffffe
add eax, 2
mov dword [esi + 0x240], eax
test byte [0x47849c], bl
jne 0x4081a5
or dword [0x47849c], ebx
mov ecx, 0x4784a0
mov byte [ebp - 4], 5
call sym.Install_vip.exe_public:_void___thiscall_CNsFont::constructor_void_
push 0x45de90
call fcn.0041daac
add esp, 4
mov byte [ebp - 4], 3
test byte [0x47849c], bl
jne 0x4081a5
or dword [0x47849c], ebx
mov ecx, 0x4784a0
mov byte [ebp - 4], 6
call sym.Install_vip.exe_public:_void___thiscall_CNsFont::constructor_void_
push 0x45de90
call fcn.0041daac
add esp, 4
mov byte [ebp - 4], 3
push edi
push edi
push ebx
push edi
mov ecx, 0x4784a0
call sym.Install_vip.exe_public:_int___thiscall_CNsFont::GetDefaultSize_void_
add eax, 2
push eax
mov ecx, 0x4784a0
call sym.Install_vip.exe_public:_struct_HFONT______thiscall_CNsFont::GetFont_int__wchar_t_const___int__int__int_
mov dword [esi + 0x238], eax
test byte [0x47849c], bl
jne 0x408221
or dword [0x47849c], ebx
mov ecx, 0x4784a0
mov byte [ebp - 4], 7
call sym.Install_vip.exe_public:_void___thiscall_CNsFont::constructor_void_
push 0x45de90
call fcn.0041daac
add esp, 4
mov byte [ebp - 4], 3
test byte [0x47849c], bl
jne 0x408221
or dword [0x47849c], ebx
mov ecx, 0x4784a0
mov byte [ebp - 4], 8
call sym.Install_vip.exe_public:_void___thiscall_CNsFont::constructor_void_
push 0x45de90
call fcn.0041daac
add esp, 4
mov byte [ebp - 4], 3
push edi
push edi
push ebx
push edi
mov ecx, 0x4784a0
call sym.Install_vip.exe_public:_int___thiscall_CNsFont::GetDefaultSize_void_
add eax, 0x26
push eax
mov ecx, 0x4784a0
call sym.Install_vip.exe_public:_struct_HFONT______thiscall_CNsFont::GetFont_int__wchar_t_const___int__int__int_
mov dword [esi + 0x23c], eax
lea eax, [esi + 0x19c4]
push eax
push 0x4659b8
push 0x1f42
mov dword [esi + 0x19c0], edi
mov dword [esi + 0x19c8], edi
mov dword [eax], edi
call sym.Install_vip.exe_int___cdecl_NsResGetBuff_int__wchar_t_const___void__
push 0x206
lea ecx, [ebp - 0x216]
xor eax, eax
push edi
push ecx
mov word [ebp - 0x218], ax
call fcn.0041eb30
add esp, 0x18
push 0x104
lea edx, [ebp - 0x218]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x218]
call fcn.00405940
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x21c]
mov edi, dword [ecx - 0xc]
test edi, edi
jns 0x4082c5
push 0x80070057
call fcn.004064e0
mov eax, dword [ecx - 8]
mov edx, ebx
sub edx, dword [ecx - 4]
sub eax, edi
or eax, edx
jge 0x4082e6
mov eax, edi
lea ecx, [ebp - 0x21c]
call fcn.00405f70
mov ecx, dword [ebp - 0x21c]
lea edx, [edi + 1]
push edx
push ecx
call fcn.0041e626
mov eax, dword [ebp - 0x21c]
add esp, 8
cmp edi, dword [eax - 8]
jg 0x4082bb
push 0x4659c0
mov dword [eax - 0xc], edi
mov ecx, dword [ebp - 0x21c]
push 0x4659c8
lea edx, [ebp - 0x21c]
xor eax, eax
push edx
mov word [ecx + edi*2], ax
call fcn.00409a50
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40833d
mov ecx, dword [ebp - 0x21c]
push ecx
jmp 0x408344
lea edx, [ebp - 0x218]
push edx
call sym.Install_vip.exe_long_long___int64____cdecl_FileSize_wchar_t_const__
add esp, 4
test edx, edx
jg 0x408362
jl 0x408359
cmp eax, 0x1e00000
jae 0x408362
mov byte [esi + 0x19bc], 0
jmp 0x408368
mov byte [esi + 0x19bc], bl
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40838e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d97a
mov esp, ebp
pop ebp
ret