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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ac264
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4ec00c]
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 + 0x120]
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 0x40bfd8
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
mov byte [ebp - 4], 1
call fcn.0040a520
mov ecx, eax
test ecx, ecx
je 0x40bfe2
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x23c], eax
lea ecx, [edi + 0x270]
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
mov dword [edi + 0x114], 0
mov dword [edi + 0x260], 0
mov dword [edi + 0x264], 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 0
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 + 0x268], 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.00433ca0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.0040a520
mov ecx, eax
test ecx, ecx
je 0x40bfec
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 0x40bef2
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bed0
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 0x40bff6
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x40bf2a
push ebx
lea ecx, [ebp - 0x21c]
call fcn.00409c40
mov esi, dword [ebp - 0x21c]
lea eax, [ebx + 1]
push eax
push esi
call fcn.00439ece
add esp, 8
cmp ebx, dword [esi - 8]
jg 0x40bff6
push 0x4ca384
xor eax, eax
mov dword [esi - 0xc], ebx
push 0x4ca38c
lea ecx, [ebp - 0x21c]
mov word [esi + ebx*2], ax
call fcn.0040dc00
mov esi, dword [ebp - 0x21c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40bf72
push esi
jmp 0x40bf79
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 0x40bf97
jl 0x40bf8e
cmp eax, 0x12c00000
jae 0x40bf97
mov byte [edi + 0x258], 0
jmp 0x40bf9e
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 0x40bfba
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.0042f10e
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