Function at 0x403ca0
Capabilities:
Inspect load icon resource

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x406ce2
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x404329
push ebx
push esi
push edi
push 0xffc54d
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CBrush::CBrush
mov esi, dword [esp + 0x78]
lea eax, [esp + 0x30]
push eax
mov ecx, esi
mov dword [esp + 0x74], 0
call sub.MFC42.DLL_CDC::SelectObject_1
mov edx, dword [ebp + 0x20]
lea ecx, [esp + 0x48]
push ecx
push edx
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x20
call ebx
push 0x21
mov dword [esp + 0x5c], eax
call ebx
push 0x20
mov dword [esp + 0x60], eax
call ebx
mov ecx, dword [esp + 0x50]
mov edi, dword [esp + 0x48]
sub ecx, edi
push 0x1f
sub ecx, eax
mov dword [esp + 0x64], ecx
call ebx
mov edi, dword [esp + 0x5c]
mov edx, dword [esp + 0x48]
add eax, edi
push 0x21
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x54]
sub eax, edx
mov dword [esp + 0x20], eax
call ebx
push 0x1f
mov edi, eax
call ebx
mov edx, dword [esp + 0x1c]
lea eax, [edi + eax + 1]
mov edi, dword [sym.imp.GDI32.dll_PatBlt]
push 0xf00021
push eax
mov eax, dword [esi + 4]
push edx
push 0
push 0
push eax
call edi
push 0x20
call ebx
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x4c]
sub ecx, edx
push 0xf00021
add ecx, 0xa
push ecx
mov ecx, dword [esi + 4]
push eax
push 0
push 0
push ecx
call edi
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x48]
sub eax, ecx
push 0x21
mov dword [esp + 0x20], eax
call ebx
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x4c]
add eax, 0xa
sub ecx, edx
mov edx, dword [esp + 0x1c]
push 0xf00021
sub ecx, eax
push eax
mov eax, dword [esi + 4]
push edx
push ecx
push 0
push eax
call edi
push 0x20
call ebx
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x4c]
sub edx, ecx
mov ecx, dword [esp + 0x50]
sub ecx, eax
push 0xf00021
sub ecx, dword [esp + 0x4c]
push edx
push eax
push 0
push ecx
mov ecx, dword [esi + 4]
push ecx
call edi
push 0xffffff
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CBrush::CBrush
lea edx, [esp + 0x28]
mov ecx, esi
push edx
mov byte [esp + 0x74], 1
call sub.MFC42.DLL_CDC::SelectObject_1
mov edi, dword [esp + 0x50]
mov ecx, dword [esp + 0x48]
sub edi, ecx
push 0x21
sub edi, 0x140
call ebx
push 0xf00021
add eax, 0xa
push 1
push edi
mov dword [esp + 0x2c], eax
push eax
mov eax, dword [esi + 4]
push 0xfa
push eax
call dword [sym.imp.GDI32.dll_PatBlt]
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 4]
push 0xf00021
add eax, 5
push 1
push edi
push eax
push 0xfa
push ecx
mov dword [esp + 0x38], eax
call dword [sym.imp.GDI32.dll_PatBlt]
mov eax, dword [esp + 0x20]
mov edx, dword [esi + 4]
push 0xf00021
add eax, 5
push 1
push edi
push eax
push 0xfa
push edx
call dword [sym.imp.GDI32.dll_PatBlt]
push 8
call sub.MFC42.DLL_operatornew
xor edi, edi
add esp, 4
cmp eax, edi
je 0x403ea3
mov dword [eax + 4], edi
mov dword [eax], 0x407840
mov dword [esp + 0x78], eax
jmp 0x403ea7
mov dword [esp + 0x78], edi
push 0x10
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, edi
mov byte [esp + 0x70], 2
je 0x403ecd
mov ecx, eax
call sub.MFC42.DLL_CDC::CDC
mov edi, eax
mov dword [esp + 0x18], edi
jmp 0x403ed1
mov dword [esp + 0x18], edi
test esi, esi
mov byte [esp + 0x70], 1
jne 0x403ede
xor eax, eax
jmp 0x403ee1
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, edi
call sub.MFC42.DLL_CDC::Attach
mov eax, dword [esp + 0x60]
push 0x473
add eax, 0xffffffed
push 2
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x44], eax
add eax, 0x13
push 0x473
mov dword [esp + 0x50], eax
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
mov ecx, dword [esp + 0x78]
push eax
call sub.MFC42.DLL_CGdiObject::Attach
mov eax, dword [esp + 0x78]
test eax, eax
je 0x403f37
mov eax, dword [eax + 4]
mov ecx, dword [edi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
sub ecx, eax
lea eax, [edx + 0x13]
sub eax, edx
mov dword [esp + 0x1c], ecx
test edi, edi
jne 0x403f64
xor edx, edx
jmp 0x403f67
mov edx, dword [edi + 4]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esi + 4]
push ecx
mov ecx, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x54]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x403f92
mov eax, dword [eax + 4]
push eax
mov eax, dword [edi + 4]
push eax
call sub.MFC42.DLL_CDC::SelectGdiObject
mov ecx, dword [esp + 0x38]
lea eax, [ebp + 0xc4]
mov edx, eax
mov dword [edx], ecx
mov ecx, dword [esp + 0x3c]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x38]
add ecx, 0x13
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x44]
mov dword [edx + 0xc], ecx
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
push edx
push ecx
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esp + 0x78]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov edx, dword [esp + 0x38]
lea eax, [edx - 3]
mov dword [esp + 0x40], eax
add eax, 0xffffffed
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je 0x40400a
push 0x471
push 2
push 0x471
jmp 0x404016
push 0x46d
push 2
push 0x46d
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
mov ecx, dword [esp + 0x78]
push eax
call sub.MFC42.DLL_CGdiObject::Attach
mov eax, dword [esp + 0x78]
test eax, eax
je 0x404037
mov eax, dword [eax + 4]
mov ecx, dword [edi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
mov edx, dword [esp + 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x40]
sub eax, edx
test edi, edi
jne 0x404057
xor ecx, ecx
jmp 0x40405a
mov ecx, dword [edi + 4]
push 0xcc0020
push 0
push 0
push ecx
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, dword [esi + 4]
push eax
mov eax, dword [esp + 0x54]
push eax
push edx
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x404085
mov eax, dword [eax + 4]
mov edx, dword [edi + 4]
push eax
push edx
call sub.MFC42.DLL_CDC::SelectGdiObject
mov edx, dword [esp + 0x38]
lea eax, [ebp + 0xd4]
mov ecx, eax
mov dword [ecx], edx
mov edx, dword [esp + 0x3c]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x40]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x44]
mov dword [ecx + 0xc], edx
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esp + 0x78]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov eax, dword [esp + 0x38]
push 0x46f
add eax, 0xfffffffd
push 2
push 0x46f
mov dword [esp + 0x4c], eax
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
mov ecx, dword [esp + 0x78]
push eax
call sub.MFC42.DLL_CGdiObject::Attach
mov eax, dword [esp + 0x78]
test eax, eax
je 0x404104
mov eax, dword [eax + 4]
mov ecx, dword [edi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x40]
lea ecx, [eax - 0x13]
sub eax, ecx
test edi, edi
jne 0x404123
xor edx, edx
jmp 0x404126
mov edx, dword [edi + 4]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x2c]
push edx
push eax
mov eax, dword [esp + 0x54]
push eax
push ecx
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x404151
mov eax, dword [eax + 4]
mov edx, dword [edi + 4]
push eax
push edx
call sub.MFC42.DLL_CDC::SelectGdiObject
mov ecx, dword [esp + 0x40]
lea eax, [ebp + 0xe4]
mov edx, eax
add ecx, 0xffffffed
mov dword [edx], ecx
mov ecx, dword [esp + 0x3c]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x40]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x44]
mov dword [edx + 0xc], ecx
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
push edx
push ecx
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esp + 0x78]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov edx, dword [esp + 0x24]
mov ecx, esi
push edx
call sub.MFC42.DLL_CDC::SelectObject_1
lea edi, [ebp + 0x104]
push 0x21
mov dword [edi], 0xa
call ebx
mov ecx, dword [edi]
mov dword [ebp + 0x108], eax
add ecx, 0x16
add eax, 0x16
mov dword [ebp + 0x10c], ecx
mov dword [ebp + 0x110], eax
call sub.MFC42.DLL_AfxGetModuleState
push 0x80
push 0xe
push 0x80
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov edx, dword [edi + 0xc]
mov ebx, dword [edi + 4]
mov ecx, dword [edi + 8]
sub edx, ebx
mov ebx, dword [edi]
push 3
push 0
push 0
sub ecx, ebx
push edx
mov edx, dword [ebp + 0x108]
push ecx
mov ecx, dword [esi + 4]
push eax
mov eax, ebx
push edx
push eax
push ecx
call dword [sym.imp.USER32.dll_DrawIconEx]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
push edx
push eax
push edi
call dword [sym.imp.USER32.dll_OffsetRect]
push 1
mov ecx, esi
call sub.MFC42.DLL_CDC::SetBkMode
mov edx, dword [esi]
push 0
mov ecx, esi
mov edi, eax
call dword [edx + 0x38]
mov ebx, eax
mov eax, dword [esi]
push 0x10
mov ecx, esi
call dword [eax + 0x2c]
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
add eax, 5
add edx, 0x1e
mov dword [esp + 0x5c], eax
add eax, 0x1e
lea ecx, [esp + 0x14]
mov dword [esp + 0x58], edx
mov dword [esp + 0x64], eax
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x70], 3
push ecx
mov ecx, ebp
call sub.MFC42.DLL_CWnd::GetWindowTextA
push 0x40b0d8
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0x14]
mov edx, dword [esi]
lea ecx, [esp + 0x58]
push 0
push ecx
mov ecx, dword [eax - 8]
push ecx
push eax
mov ecx, esi
call dword [edx + 0x70]
push edi
mov ecx, esi
call sub.MFC42.DLL_CDC::SetBkMode
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x38]
mov esi, dword [esp + 0x18]
mov ecx, dword [ebp + 0x20]
mov eax, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
test esi, esi
je 0x4042d5
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 4]
mov ecx, dword [esp + 0x78]
test ecx, ecx
je 0x4042e4
mov eax, dword [ecx]
push 1
call dword [eax + 4]
lea ecx, [esp + 0x14]
mov byte [esp + 0x70], 1
call fcn.00406008
mov esi, 0x40782c
mov dword [esp + 0x28], esi
lea ecx, [esp + 0x28]
mov byte [esp + 0x70], 4
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x28], 0x407818
mov dword [esp + 0x30], esi
lea ecx, [esp + 0x30]
mov dword [esp + 0x70], 5
call sub.MFC42.DLL_CGdiObject::DeleteObject
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5c]
pop ebp
mov dword fs:[0], ecx
add esp, 0x64
ret 4