Function at 0x402940
Capabilities:
Inspect load icon resource

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
lea edi, [ecx + 0x70]
mov dword [esp + 0x10], ecx
mov edx, edi
mov eax, dword [edx]
mov dword [esp + 0x1c], eax
add eax, 0x24
mov esi, dword [edx + 4]
mov dword [esp + 0x20], esi
mov esi, dword [edx + 8]
mov dword [esp + 0x24], esi
mov dword [esp + 0x24], eax
mov eax, dword [ecx + 0x20]
mov edx, dword [edx + 0xc]
push eax
mov dword [esp + 0x2c], edx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call sub.MFC42.DLL_CDC::FromHandle
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
push 0xc8c8c8
mov esi, eax
mov eax, dword [esp + 0x20]
push 0xf0f0f0
push 1
push ecx
push eax
push edx
push eax
sub esp, 0x10
mov ebx, esp
push esi
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov edx, dword [esp + 0x54]
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], ecx
call fcn.00401630
add esp, 0x30
lea eax, [esp + 0x1c]
mov ecx, esi
push 0
push 0
push eax
call sub.MFC42.DLL_CDC::Draw3dRect
mov edx, dword [esi]
push 7
mov ecx, esi
call dword [edx + 0x2c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
add eax, ecx
mov ecx, esi
cdq
sub eax, edx
mov edx, dword [esp + 0x20]
sar eax, 1
push edx
push eax
lea eax, [esp + 0x1c]
push eax
call sub.MFC42.DLL_CDC::MoveTo
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
lea eax, [edx + ecx]
mov ecx, dword [esp + 0x28]
cdq
sub eax, edx
push ecx
sar eax, 1
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov ecx, 0x41c8e0
call fcn.00405d10
cmp eax, 2
je 0x402a36
call sub.MFC42.DLL_AfxGetModuleState
push 0x81
push 0xe
push 0x81
jmp 0x402a47
call sub.MFC42.DLL_AfxGetModuleState
push 0x82
push 0xe
push 0x82
call sub.MFC42.DLL_AfxFindResourceHandle
mov ebp, dword [sym.imp.USER32.dll_LoadIconA]
push eax
call ebp
test esi, esi
jne 0x402a5d
xor ecx, ecx
jmp 0x402a60
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x20]
push 3
push 0
push 0
push 0x10
mov ebx, dword [sym.imp.USER32.dll_DrawIconEx]
push 0x10
push eax
mov eax, dword [esp + 0x34]
inc edx
inc eax
push edx
push eax
push ecx
call ebx
mov eax, dword [0x41c7bc]
test eax, eax
jne 0x402aac
mov ecx, dword [0x41c970]
mov al, byte [ecx + 0x14cdc]
test al, al
je 0x402aac
call sub.MFC42.DLL_AfxGetModuleState
push 0x83
push 0xe
push 0x83
jmp 0x402abd
call sub.MFC42.DLL_AfxGetModuleState
push 0x84
push 0xe
push 0x84
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call ebp
test esi, esi
jne 0x402acd
xor ecx, ecx
jmp 0x402ad0
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x20]
push 3
push 0
push 0
push 0x10
push 0x10
push eax
mov eax, dword [esp + 0x34]
inc edx
add eax, 0x13
push edx
push eax
push ecx
call ebx
mov ecx, dword [edi]
mov edx, dword [edi + 8]
mov dword [esp + 0x1c], ecx
mov ecx, dword [edi + 4]
mov edi, dword [edi + 0xc]
push 0xc8c8c8
push 0xf0f0f0
lea eax, [edx - 0x22]
push 1
push edi
push eax
push ecx
push eax
mov dword [esp + 0x3c], ecx
sub esp, 0x10
mov dword [esp + 0x50], edx
mov ebp, esp
mov dword [esp + 0x54], edi
push esi
mov dword [esp + 0x4c], eax
mov dword [ebp], eax
mov dword [ebp + 4], ecx
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], edi
call fcn.00401630
add esp, 0x30
lea edx, [esp + 0x1c]
mov ecx, esi
push 0
push 0
push edx
call sub.MFC42.DLL_CDC::Draw3dRect
call sub.MFC42.DLL_AfxGetModuleState
push 0x8f
push 0xe
push 0x8f
call sub.MFC42.DLL_AfxFindResourceHandle
mov edi, dword [sym.imp.USER32.dll_LoadIconA]
push eax
call edi
test esi, esi
jne 0x402b6f
xor ecx, ecx
jmp 0x402b72
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x1c]
push 3
push 0
push 0
push 0x10
push 0x10
push eax
mov eax, dword [esp + 0x38]
inc eax
inc edx
push eax
push edx
push ecx
call ebx
call sub.MFC42.DLL_AfxGetModuleState
push 0x85
push 0xe
push 0x85
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call edi
test esi, esi
jne 0x402bad
xor ecx, ecx
jmp 0x402bb0
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x1c]
push 3
push 0
push 0
push 0x10
push 0x10
push eax
mov eax, dword [esp + 0x38]
inc eax
add edx, 0x11
push eax
push edx
push ecx
call ebx
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 4]
push eax
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret