Function at 0x401fd0
Capabilities:
Inspect load icon resource

Disassembly:
push 0xffffffffffffffff
push 0x425ca2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
mov eax, dword [esp + 0x160]
push ebx
push esi
mov esi, ecx
push edi
mov dword [esi + 0x14c], eax
mov eax, dword [esp + 0x170]
and eax, 0xffff
push eax
push 0xe
push eax
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
xor ebx, ebx
push eax
push ebx
push ebx
push 8
call sub.MFC42.DLL_AfxRegisterWndClass
mov ecx, 0x432618
mov edi, eax
call fcn.004226d0
mov dword [esi + 0x34c], eax
call fcn.0040eb90
push ebx
push ebx
neg eax
lea ecx, [esp + 0x44]
push ebx
sbb eax, eax
push ecx
push 0xa0000
and eax, 0x400000
push 0x431220
push edi
push eax
mov ecx, esi
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], 0xa
mov dword [esp + 0x68], 0x14
call sub.MFC42.DLL_CWnd::CreateEx
test eax, eax
je 0x40258b
push ebp
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetStyle
mov edx, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SetWindowLongA]
and eax, 0xfb3fffff
push eax
push 0xfffffffffffffff0
push edx
call edi
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetExStyle
and ah, 0xfd
push eax
mov eax, dword [esi + 0x20]
push 0xffffffffffffffec
push eax
call edi
push esi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CClientDC::CClientDC
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esp + 0x168], ebx
neg eax
sbb eax, eax
mov dword [esi + 0x308], 0x15e
and eax, edx
push eax
call edi
push eax
lea ecx, [esi + 0xec]
call sub.MFC42.DLL_CDC::Attach
mov ecx, dword [esi + 0x34c]
lea ebx, [esi + 0xbc]
mov eax, dword [ecx]
and eax, 0xffff
push eax
push 2
push eax
call sub.MFC42.DLL_AfxFindResourceHandle
mov ebp, dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
call ebp
push eax
mov ecx, ebx
call sub.MFC42.DLL_CGdiObject::Attach
mov eax, dword [esi + 0xc0]
mov ebx, dword [sym.imp.GDI32.dll_GetObjectA]
lea edx, [esp + 0x24]
push edx
push 0x18
push eax
call ebx
lea eax, [esi + 0xbc]
test eax, eax
je 0x40213d
mov eax, dword [eax + 4]
mov ecx, dword [esi + 0xf0]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
mov dword [esi + 0x328], eax
mov dword [esi + 0x320], eax
mov dword [esi + 0x324], eax
lea eax, [esp + 0x10]
neg eax
sbb eax, eax
and eax, edx
push eax
call edi
push eax
lea ecx, [esi + 0x13c]
call sub.MFC42.DLL_CDC::Attach
mov edx, dword [esi + 0x34c]
mov eax, dword [edx + 0x10]
and eax, 0xffff
push eax
push 2
push eax
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call ebp
push eax
lea ecx, [esi + 0xe4]
call sub.MFC42.DLL_CGdiObject::Attach
mov ecx, dword [esi + 0xe8]
lea eax, [esp + 0x24]
push eax
push 0x18
push ecx
call ebx
lea eax, [esi + 0xe4]
test eax, eax
je 0x4021c0
mov eax, dword [eax + 4]
mov edx, dword [esi + 0x140]
push eax
push edx
call sub.MFC42.DLL_CDC::SelectGdiObject
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
mov dword [esi + 0x31c], eax
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x10]
mov dword [esi + 0x33c], ecx
neg eax
sbb eax, eax
and eax, edx
push eax
call edi
push eax
lea ecx, [esi + 0x12c]
call sub.MFC42.DLL_CDC::Attach
mov edx, dword [esi + 0x34c]
mov eax, dword [edx + 0xc]
and eax, 0xffff
push eax
push 2
push eax
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call ebp
push eax
lea ecx, [esi + 0xdc]
call sub.MFC42.DLL_CGdiObject::Attach
mov ecx, dword [esi + 0xe0]
lea eax, [esp + 0x24]
push eax
push 0x18
push ecx
call ebx
lea eax, [esi + 0xdc]
test eax, eax
je 0x402241
mov eax, dword [eax + 4]
mov edx, dword [esi + 0x130]
push eax
push edx
call sub.MFC42.DLL_CDC::SelectGdiObject
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
neg eax
sbb eax, eax
and eax, ecx
push eax
call edi
push eax
lea ecx, [esi + 0xfc]
call sub.MFC42.DLL_CDC::Attach
mov eax, dword [esi + 0x34c]
mov eax, dword [eax + 4]
and eax, 0xffff
push eax
push 2
push eax
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call ebp
push eax
lea ecx, [esi + 0xc4]
call sub.MFC42.DLL_CGdiObject::Attach
mov edx, dword [esi + 0xc8]
lea ecx, [esp + 0x24]
push ecx
push 0x18
push edx
call ebx
lea eax, [esi + 0xc4]
test eax, eax
je 0x4022ae
mov eax, dword [eax + 4]
push eax
mov eax, dword [esi + 0x100]
push eax
call sub.MFC42.DLL_CDC::SelectGdiObject
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x10]
mov dword [esi + 0x310], ecx
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x330], edx
neg eax
sbb eax, eax
and eax, ecx
push eax
call edi
push eax
lea ecx, [esi + 0x10c]
call sub.MFC42.DLL_CDC::Attach
mov eax, dword [esi + 0x34c]
mov eax, dword [eax + 0xc4]
and eax, 0xffff
push eax
push 2
push eax
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call ebp
push eax
lea ecx, [esi + 0xcc]
call sub.MFC42.DLL_CGdiObject::Attach
mov edx, dword [esi + 0xd0]
lea ecx, [esp + 0x24]
push ecx
push 0x18
push edx
call ebx
lea eax, [esi + 0xcc]
test eax, eax
je 0x402332
mov eax, dword [eax + 4]
push eax
mov eax, dword [esi + 0x110]
push eax
call sub.MFC42.DLL_CDC::SelectGdiObject
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x10]
mov dword [esi + 0x334], edx
mov edx, dword [esp + 0x14]
mov dword [esi + 0x314], ecx
neg eax
sbb eax, eax
and eax, edx
push eax
call edi
push eax
lea ecx, [esi + 0x11c]
call sub.MFC42.DLL_CDC::Attach
mov eax, dword [esi + 0x34c]
lea edi, [esi + 0xd4]
mov eax, dword [eax + 8]
and eax, 0xffff
push eax
push 2
push eax
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call ebp
push eax
mov ecx, edi
call sub.MFC42.DLL_CGdiObject::Attach
mov edx, dword [esi + 0xd8]
lea ecx, [esp + 0x24]
push ecx
push 0x18
push edx
call ebx
test edi, edi
pop ebp
je 0x4023b0
mov edi, dword [edi + 4]
mov eax, dword [esi + 0x120]
push edi
push eax
call sub.MFC42.DLL_CDC::SelectGdiObject
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x58]
mov dword [esi + 0x318], ecx
push 0x104
push eax
mov ecx, esi
mov dword [esi + 0x338], edx
call fcn.004062c0
test eax, eax
je 0x40244b
push 0x1c
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x38], eax
test eax, eax
mov byte [esp + 0x164], 1
je 0x402416
push 0
push 0
push 0
lea ecx, [esp + 0x64]
push 0
push ecx
mov ecx, eax
call fcn.0040a7d0
jmp 0x402418
xor eax, eax
mov ecx, eax
mov byte [esp + 0x164], 0
mov dword [esi + 0x98], eax
call fcn.0040aa10
test eax, eax
jne 0x40244b
mov ecx, dword [esi + 0x98]
test ecx, ecx
je 0x40244b
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [esi + 0x98], 0
mov eax, dword [esi + 0x98]
test eax, eax
jne 0x40249c
push 0x1c
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x38], eax
test eax, eax
mov byte [esp + 0x164], 2
je 0x40248c
mov ecx, dword [esi + 0x34c]
push 0
push 0
push 0xffffffffffffffff
mov edx, dword [ecx + 0x14]
push 0
push 0
push edx
mov ecx, eax
call fcn.0040a870
jmp 0x40248e
xor eax, eax
mov byte [esp + 0x164], 0
mov dword [esi + 0x98], eax
mov ecx, dword [esi + 0x98]
call fcn.0040aa10
mov ecx, dword [esi + 0x98]
mov dword [esi + 0x30c], eax
call fcn.0040a9f0
mov ecx, dword [esi + 0x330]
mov edx, dword [esi + 0x320]
mov edi, dword [esi + 0x334]
mov dword [esi + 0x32c], eax
mov eax, dword [esi + 0x308]
lea ecx, [edx + ecx*2 + 0x64]
add ecx, edi
add eax, 0x64
add ecx, 0xffffff9c
push 0
add eax, 0xffffff9c
push ecx
push eax
push 0x64
push 0x64
mov ecx, esi
call sub.MFC42.DLL_CWnd::MoveWindow
lea ecx, [esp + 0x4c]
call fcn.00424a00
mov eax, dword [esi + 0x20]
push 0
push 0
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x170], 3
call fcn.00424b80
mov ecx, esi
call fcn.00403440
mov ecx, esi
call fcn.00406070
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 5
mov ecx, esi
call sub.MFC42.DLL_CWnd::ShowWindow
mov ecx, dword [esi + 0x20]
push 0
push 0xbb8
push 0x5128
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
lea ecx, [esp + 0x4c]
mov byte [esp + 0x164], 0
call fcn.00424aa0
lea ecx, [esp + 0xc]
mov dword [esp + 0x164], 0xffffffff
call fcn.00425030
mov eax, 1
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x15c
ret 8