Function at 0x40e470
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x448cac
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x460cd0]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov eax, dword [0x460cd0]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00424e37
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
call fcn.004272b3
mov eax, dword [eax + 8]
push 0xdf
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
je 0x40e4f4
mov edx, dword [esi + 0x20]
push eax
push 0
push 0x80
push edx
call ebx
jmp 0x40e506
push str.cannot_load_main_icon
mov ecx, 0x466338
call fcn.0041a690
add esp, 4
call fcn.00408f90
test al, al
je 0x40e51f
push 3
push 0x400000
push 0
mov ecx, esi
call fcn.0042648e
lea ecx, [esp + 0x14]
call fcn.00403710
mov dword [esp + 0xa0], 0
lea ecx, [esp + 0x14]
call fcn.00403580
push 0
lea eax, [esp + 0x1c]
push 0xc9
push eax
call fcn.00418df0
add esp, 0xc
mov byte [esp + 0xa0], 1
push eax
lea ecx, [esp + 0x18]
call fcn.00403460
mov byte [esp + 0xa0], 0
lea ecx, [esp + 0x18]
call fcn.004036b0
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, esi
call fcn.004264b8
push 0x40
call sub.gdiplus.dll_GdipAlloc
mov dword [esp + 0x18], eax
mov byte [esp + 0xa0], 2
test eax, eax
je 0x40e5a3
push 0x451fe0
push eax
call fcn.004066f0
jmp 0x40e5a5
xor eax, eax
mov byte [esp + 0xa0], 0
test eax, eax
mov dword [esi + 0xd8], eax
jne 0x40e5c9
push str.Fail_to_Load_trash_Image_in_Fisnish_Dlg
mov ecx, 0x466338
call fcn.0041a690
add esp, 4
mov edx, dword [esi + 0x94]
push 0
push 0
push 0x31
push edx
call ebx
push eax
call fcn.00424243
mov edx, dword [eax + 4]
lea ecx, [esp + 0x2c]
push ecx
push 0x5c
push edx
call dword [sym.imp.GDI32.dll_GetObjectW]
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x40], 0x1f4
lea edi, [esi + 0xc8]
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push eax
mov ecx, edi
call fcn.00424251
test edi, edi
je 0x40e61f
mov edi, dword [edi + 4]
mov ecx, dword [esi + 0x94]
push 0
push edi
push 0x30
push ecx
call ebx
lea ecx, [esp + 0x14]
call fcn.00403580
mov edx, dword [esi + 0xd0]
push 0
push edx
lea eax, [esp + 0x20]
push eax
call fcn.00418df0
add esp, 0xc
mov byte [esp + 0xa0], 3
push eax
lea ecx, [esp + 0x18]
call fcn.00403460
mov byte [esp + 0xa0], 0
lea ecx, [esp + 0x18]
call fcn.004036b0
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x1c]
sub eax, 0x2d
cdq
push 4
push 0x1e
sub eax, edx
sub ecx, 0x46
push ecx
sar eax, 1
sub eax, 0xa
push eax
push 0x3c
lea ebx, [esi + 0x74]
push 0
mov ecx, ebx
call fcn.004265f5
mov edx, dword [esp + 0x14]
push edx
mov ecx, ebx
call fcn.004264b8
lea ecx, [esp + 0x14]
call fcn.00403580
push 0x8a
call fcn.0042636e
test eax, eax
je 0x40e6d3
push 0x8a
push eax
lea ecx, [esp + 0x1c]
call fcn.004032e0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push 4
push 0x19
push 0x55
add eax, 0xffffffdd
push eax
add ecx, 0xffffffa1
push ecx
lea edi, [esi + 0x138]
push 0
mov ecx, edi
call fcn.004265f5
mov edx, dword [esp + 0x14]
push edx
mov ecx, edi
call fcn.004264b8
lea ecx, [esp + 0x14]
call fcn.00403580
push 0x89
call fcn.0042636e
test eax, eax
je 0x40e72a
push 0x89
push eax
lea ecx, [esp + 0x1c]
call fcn.004032e0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push 4
push 0x19
push 0x55
add eax, 0xffffffdd
push eax
add ecx, 0xffffff42
push ecx
add esi, 0xe4
push 0
mov ecx, esi
call fcn.004265f5
mov edx, dword [esp + 0x14]
push edx
mov ecx, esi
call fcn.004264b8
call fcn.00408f90
test al, al
je 0x40e797
push 3
push 0x400000
push 0
mov ecx, ebx
call fcn.0042648e
push 3
push 0x400000
push 0
mov ecx, edi
call fcn.0042648e
push 3
push 0x400000
push 0
mov ecx, esi
call fcn.0042648e
mov dword [esp + 0xa0], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.004036b0
mov eax, 1
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.0042f002
mov esp, ebp
pop ebp
ret