Function at 0x404130
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40d858
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebp
push esi
mov esi, ecx
push edi
push esi
lea ecx, [esp + 0x54]
call sub.MFC42.DLL_CClientDC::CClientDC
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x20]
push eax
push ecx
mov dword [esp + 0x74], 0
call dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CDC::CDC
mov ebp, dword [esp + 0x54]
lea eax, [esp + 0x50]
neg eax
sbb eax, eax
mov byte [esp + 0x6c], 1
and eax, ebp
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CDC::Attach
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x20]
sub edx, ecx
mov ecx, dword [esp + 0x54]
sub eax, ebp
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
test eax, eax
mov dword [esp + 0x18], eax
je 0x4041d6
mov edx, dword [esp + 0x34]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x10], eax
jmp 0x4041de
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x20]
lea edx, [esi + 0x1ac]
sub eax, edi
sub ecx, ebp
test edx, edx
je 0x4041ff
mov edx, dword [edx + 4]
push 0xcc0020
push 0
push 0
push edx
push eax
mov eax, dword [esp + 0x48]
push ecx
push edi
push ebp
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
lea ecx, [esp + 0xc]
call fcn.0040a5ba
lea ecx, [esp + 0xc]
mov byte [esp + 0x6c], 2
push ecx
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetWindowTextA
push 1
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CDC::SetBkMode
mov edx, dword [esi + 0x16c]
lea ecx, [esp + 0x30]
push edx
mov dword [esp + 0x18], eax
call sub.MFC42.DLL_CDC::SelectObject
mov ebp, eax
mov eax, dword [esi + 0x1bc]
cmp eax, 1
jne 0x4044f4
mov eax, dword [esi + 0x1c0]
test eax, eax
jne 0x4043b5
lea edi, [esi + 0x40]
mov ecx, edi
call fcn.0040a2b0
test al, al
jne 0x4042cb
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x2c]
push 0
lea edx, [esp + 0x34]
push ecx
push edx
mov ecx, edi
mov dword [esp + 0x58], eax
call fcn.0040a3f0
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
push 0
push 0
sub eax, edx
push 0
push eax
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CRect::DeflateRect
lea edi, [esi + 0x60]
mov ecx, edi
call fcn.0040a2b0
test al, al
jne 0x404326
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
lea edx, [esp + 0x40]
push 2
lea eax, [esp + 0x34]
mov dword [esp + 0x50], ecx
push edx
push eax
mov ecx, edi
call fcn.0040a3f0
mov ecx, dword [esp + 0x48]
mov edi, dword [esp + 0x40]
sub ecx, edi
push 0
push ecx
push 0
push 0
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CRect::DeflateRect
lea edi, [esi + 0x50]
mov ecx, edi
call fcn.0040a2b0
test al, al
jne 0x404360
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
sub esp, 0x10
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x38]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea edx, [esp + 0x40]
push edx
mov ecx, edi
call fcn.0040a2c0
lea edi, [esi + 0x184]
mov ecx, edi
call fcn.0040a2b0
test al, al
jne 0x404384
lea eax, [esi + 0x19c]
push 0
lea ecx, [esp + 0x34]
push eax
push ecx
jmp 0x404a39
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
test ecx, ecx
jle case.default.0x404503
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x160]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
jmp 0x404a89
lea edi, [esi + 0xa0]
mov ecx, edi
call fcn.0040a2b0
test al, al
jne 0x404413
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
lea eax, [esp + 0x40]
push 0
lea ecx, [esp + 0x34]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x30]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x58], edx
call fcn.0040a3f0
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x40]
push 0
push 0
sub edx, ecx
push 0
push edx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CRect::DeflateRect
lea edi, [esi + 0xc0]
mov ecx, edi
call fcn.0040a2b0
test al, al
jne 0x404471
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x2c]
push 2
lea edx, [esp + 0x34]
push ecx
push edx
mov ecx, edi
mov dword [esp + 0x58], eax
call fcn.0040a3f0
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x40]
sub eax, edi
push 0
push eax
push 0
push 0
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CRect::DeflateRect
lea edi, [esi + 0xb0]
mov ecx, edi
call fcn.0040a2b0
test al, al
jne 0x4044ae
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x38]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x40]
push ecx
mov ecx, edi
call fcn.0040a2c0
lea edi, [esi + 0x184]
mov ecx, edi
call fcn.0040a2b0
test al, al
je 0x4048a2
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
test ecx, ecx
jle case.default.0x404503
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x160]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
jmp 0x404a89
mov eax, dword [esi + 0x15c]
cmp eax, 3
ja case.default.0x404503
jmp dword [eax*4 + 0x404ba4]
lea edi, [esi + 0x40]
mov ecx, edi
call fcn.0040a2b0
test al, al
jne 0x404565
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
lea eax, [esp + 0x40]
push 0
lea ecx, [esp + 0x34]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x30]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x58], edx
call fcn.0040a3f0
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x40]
push 0
push 0
sub edx, ecx
push 0
push edx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CRect::DeflateRect
lea edi, [esi + 0x60]
mov ecx, edi
call fcn.0040a2b0
test al, al
jne 0x4045c0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x2c]
push 2
lea edx, [esp + 0x34]
push ecx
push edx
mov ecx, edi
mov dword [esp + 0x58], eax
call fcn.0040a3f0
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x40]
sub eax, edi
push 0
push eax
push 0
push 0
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CRect::DeflateRect
lea edi, [esi + 0x50]
mov ecx, edi
call fcn.0040a2b0
test al, al
jne 0x4045fa
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x38]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x40]
push ecx
mov ecx, edi
call fcn.0040a2c0
lea edi, [esi + 0x184]
mov ecx, edi
call fcn.0040a2b0
test al, al
je 0x404a2b
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
test ecx, ecx
jle case.default.0x404503
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x160]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
jmp 0x404a89
lea edi, [esi + 0x70]
mov ecx, edi
call fcn.0040a2b0
test al, al
jne 0x40469b
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
lea eax, [esp + 0x40]
push 0
lea ecx, [esp + 0x34]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x30]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x58], edx
call fcn.0040a3f0
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x40]
push 0
push 0
sub edx, ecx
push 0
push edx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CRect::DeflateRect
lea edi, [esi + 0x90]
mov ecx, edi
call fcn.0040a2b0
test al, al
jne 0x4046f9
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x2c]
push 2
lea edx, [esp + 0x34]
push ecx
push edx
mov ecx, edi
mov dword [esp + 0x58], eax
call fcn.0040a3f0
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x40]
sub eax, edi
push 0
push eax
push 0
push 0
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CRect::DeflateRect
lea edi, [esi + 0x80]
mov ecx, edi
call fcn.0040a2b0
test al, al
jne 0x404736
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x38]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x40]
push ecx
mov ecx, edi
call fcn.0040a2c0
lea edi, [esi + 0x174]
mov ecx, edi
call fcn.0040a2b0
test al, al
jne 0x404767
lea edx, [esi + 0x19c]
push 0
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, edi
call fcn.0040a3f0
mov eax, dword [esi + 0x164]
jmp 0x404a46
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
test ecx, ecx
jle case.default.0x404503
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x160]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
jmp 0x404a89
lea edi, [esi + 0xa0]
mov ecx, edi
call fcn.0040a2b0
test al, al
jne 0x4047f6
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
lea eax, [esp + 0x40]
push 0
lea ecx, [esp + 0x34]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x30]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x58], edx
call fcn.0040a3f0
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x40]
push 0
push 0
sub edx, ecx
push 0
push edx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CRect::DeflateRect
lea edi, [esi + 0xc0]
mov ecx, edi
call fcn.0040a2b0
test al, al
jne 0x404854
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x2c]
push 2
lea edx, [esp + 0x34]
push ecx
push edx
mov ecx, edi
mov dword [esp + 0x58], eax
call fcn.0040a3f0
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x40]
sub eax, edi
push 0
push eax
push 0
push 0
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CRect::DeflateRect
lea edi, [esi + 0xb0]
mov ecx, edi
call fcn.0040a2b0
test al, al
jne 0x404891
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x38]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x40]
push ecx
mov ecx, edi
call fcn.0040a2c0
lea edi, [esi + 0x184]
mov ecx, edi
call fcn.0040a2b0
test al, al
jne 0x4048f0
lea edx, [esi + 0x19c]
push 0
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, edi
call fcn.0040a3f0
mov eax, dword [esi + 0x164]
lea ecx, [esp + 0x30]
push eax
call sub.MFC42.DLL_CDC::SetTextColor
mov eax, dword [esi + 0x198]
mov ecx, dword [esi + 0x194]
inc eax
inc ecx
mov edx, dword [esp + 0xc]
mov edi, dword [edx - 8]
push edi
push edx
mov edx, dword [esp + 0x38]
push eax
push ecx
lea ecx, [esp + 0x40]
call dword [edx + 0x64]
jmp case.default.0x404503
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
test ecx, ecx
jle case.default.0x404503
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x160]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
jmp 0x404a89
lea edi, [esi + 0xd0]
mov ecx, edi
call fcn.0040a2b0
test al, al
jne 0x40497f
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
lea eax, [esp + 0x40]
push 0
lea ecx, [esp + 0x34]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x30]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x58], edx
call fcn.0040a3f0
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x40]
push 0
push 0
sub edx, ecx
push 0
push edx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CRect::DeflateRect
lea edi, [esi + 0xf0]
mov ecx, edi
call fcn.0040a2b0
test al, al
jne 0x4049dd
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x2c]
push 2
lea edx, [esp + 0x34]
push ecx
push edx
mov ecx, edi
mov dword [esp + 0x58], eax
call fcn.0040a3f0
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x40]
sub eax, edi
push 0
push eax
push 0
push 0
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CRect::DeflateRect
lea edi, [esi + 0xe0]
mov ecx, edi
call fcn.0040a2b0
test al, al
jne 0x404a1a
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x38]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x40]
push ecx
mov ecx, edi
call fcn.0040a2c0
lea edi, [esi + 0x184]
mov ecx, edi
call fcn.0040a2b0
test al, al
jne 0x404a61
lea edx, [esi + 0x19c]
push 0
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, edi
call fcn.0040a3f0
mov eax, dword [esi + 0x160]
push eax
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CDC::SetTextColor
mov eax, dword [esi + 0x198]
mov ecx, dword [esi + 0x194]
jmp 0x4048d5
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
test ecx, ecx
jle case.default.0x404503
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x160]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
lea eax, [esp + 0x14]
push eax
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x40]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x44]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x48]
push ecx
mov ecx, esi
call fcn.00404d30
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x38]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x40]
push ecx
mov ecx, esi
call fcn.00404bc0
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x34]
sub eax, edx
sub ecx, esi
push 0xff00ff
push eax
push ecx
push 0
push 0
push edi
push eax
push ecx
push edx
mov edx, dword [esp + 0x78]
push esi
push edx
call dword [sym.imp.MSIMG32.dll_TransparentBlt]
push ebp
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CDC::SelectObject
mov eax, dword [esp + 0x10]
test eax, eax
je 0x404b4b
push eax
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CDC::SetBkMode
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
lea ecx, [esp + 0xc]
mov byte [esp + 0x6c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x6c], 0
call fcn.0040a84e
lea ecx, [esp + 0x50]
mov dword [esp + 0x6c], 0xffffffff
call fcn.0040a87e
mov ecx, dword [esp + 0x64]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x64
ret