Function at 0x40e2d0
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x41f389
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa8
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x4c]
call fcn.00402a70
mov edi, 0x421a30
mov dword [esp + 0x4c], edi
lea ecx, [esp + 0x3c]
mov dword [esp + 0xc0], 0
call fcn.00402a70
mov dword [esp + 0x3c], edi
lea ecx, [esp + 0x18]
mov byte [esp + 0xc0], 1
call sub.MFC42.DLL_CDC::CDC
mov ecx, dword [esi + 0x3a0]
mov byte [esp + 0xc0], 2
call fcn.0041c780
mov ecx, dword [esi + 0x3a0]
push 0x258
call fcn.00410e50
mov ecx, dword [esi + 0x3a0]
mov ebp, eax
call fcn.0041c780
mov eax, dword [ebp]
and eax, 0xffff
push eax
push 2
push eax
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CGdiObject::Attach
mov eax, dword [esi + 0x3a0]
mov edi, dword [eax + 0x30]
call sub.MFC42.DLL_AfxGetModuleState
mov dword [eax + 0xc], edi
mov ecx, dword [esp + 0x50]
lea eax, [esp + 0x5c]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x60]
mov ebx, dword [ebp + 4]
mov edi, dword [ebp + 0xc]
mov ebp, dword [ebp + 0x10]
sub eax, ecx
mov dword [esp + 0x44], eax
sub eax, ebx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x64]
sub eax, ebp
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x48], eax
sub eax, edi
push 0
lea ecx, [esp + 0x78]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x2c], eax
call sub.MFC42.DLL_CClientDC::CClientDC
lea ebp, [esi + 0x390]
mov byte [esp + 0xc0], 3
mov ecx, ebp
call sub.MFC42.DLL_CDC::DeleteDC
mov ecx, dword [esp + 0x78]
lea eax, [esp + 0x74]
neg eax
sbb eax, eax
and eax, ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, ebp
call sub.MFC42.DLL_CDC::Attach
test ebp, ebp
je 0x40e419
mov ebp, dword [ebp + 4]
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CDC::Attach
mov edx, dword [esp + 0x50]
lea eax, [esp + 0x4c]
neg eax
sbb eax, eax
and eax, edx
mov edx, dword [esp + 0x1c]
push eax
push edx
call sub.MFC42.DLL_CDC::SelectGdiObject
mov ecx, dword [esi + 0x324]
mov edx, dword [esi + 0x31c]
mov ebp, dword [esi + 0x318]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x6e]
sub ecx, edx
mov edx, dword [esi + 0x320]
and eax, 0xffff
push 0
push eax
sub edx, ebp
push 1
push ecx
push edx
lea ebp, [esi + 0x34c]
call dword [sym.imp.GDI32.dll_CreateBitmap]
push eax
mov ecx, ebp
call sub.MFC42.DLL_CGdiObject::Attach
test ebp, ebp
je 0x40e48e
mov ebp, dword [ebp + 4]
mov eax, dword [esi + 0x394]
push ebp
push eax
call sub.MFC42.DLL_CDC::SelectGdiObject
mov dword [esi + 0x354], eax
mov eax, dword [esi + 0x324]
mov ebp, dword [esi + 0x31c]
mov ecx, dword [esi + 0x320]
mov edx, dword [esi + 0x318]
sub eax, ebp
sub ecx, edx
push eax
push ecx
push 0
lea ecx, [esp + 0xb4]
push 0
push ecx
call dword [sym.imp.USER32.dll_SetRect]
lea eax, [esi + 0x388]
test eax, eax
je 0x40e4de
mov eax, dword [eax + 4]
push eax
mov eax, dword [esi + 0x394]
lea edx, [esp + 0xac]
push edx
push eax
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [esi + 0x2b8]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
sub eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x2bc]
mov edx, dword [esp + 0x1c]
sub eax, ecx
mov dword [esp + 0x30], eax
lea eax, [esp + 0x18]
neg eax
mov ecx, dword [esi + 0x394]
push 0xcc0020
sbb eax, eax
mov ebp, dword [sym.imp.GDI32.dll_BitBlt]
and eax, edx
push 0
push 0
push eax
push edi
push ebx
push 0
push 0
push ecx
call ebp
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x48]
lea eax, [esp + 0x18]
push 0xcc0020
neg eax
sbb eax, eax
push edx
mov edx, dword [esi + 0x394]
and eax, ecx
mov ecx, dword [esp + 0x1c]
push 0
push eax
mov eax, dword [esp + 0x44]
push eax
push ebx
push ecx
push 0
push edx
call ebp
mov eax, dword [esi + 0x2bc]
mov ecx, ebx
cmp ebx, eax
mov dword [esp + 0x38], ecx
jge 0x40e61a
jmp 0x40e58c
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x54]
sub eax, ecx
cmp edx, eax
mov dword [esp + 0x10], edx
jl 0x40e59e
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
neg eax
sbb eax, eax
push 0xcc0020
and eax, edx
push 0
push ebx
push eax
mov eax, dword [esp + 0x20]
push edi
push eax
push 0
push ecx
mov ecx, dword [esi + 0x394]
push ecx
call ebp
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x48]
lea eax, [esp + 0x18]
push 0xcc0020
neg eax
sbb eax, eax
push edx
mov edx, dword [esp + 0x1c]
and eax, ecx
mov ecx, dword [esp + 0x18]
push ebx
push eax
mov eax, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x4c]
push ecx
mov ecx, dword [esi + 0x394]
push edx
push eax
push ecx
call ebp
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x10]
add ecx, eax
mov eax, dword [esi + 0x2bc]
cmp ecx, eax
mov dword [esp + 0x38], ecx
jl 0x40e588
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x44]
lea eax, [esp + 0x18]
mov ecx, dword [esi + 0x394]
neg eax
sbb eax, eax
push 0xcc0020
and eax, ebx
mov ebx, dword [esp + 0x34]
push 0
push edx
push eax
mov eax, dword [esp + 0x3c]
push edi
push eax
push 0
push ebx
push ecx
call ebp
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x48]
lea eax, [esp + 0x18]
push 0xcc0020
neg eax
sbb eax, eax
push edx
mov edx, dword [esp + 0x3c]
and eax, ecx
mov ecx, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x3c]
push edx
mov edx, dword [esi + 0x394]
push eax
push ecx
push ebx
push edx
call ebp
mov eax, dword [esp + 0x14]
mov ebx, edi
cmp edi, eax
jge 0x40e718
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
sub eax, ebx
mov dword [esp + 0x10], ecx
cmp ecx, eax
jl 0x40e6a6
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
neg eax
mov ecx, dword [esp + 0x2c]
push 0xcc0020
sbb eax, eax
push edi
and eax, edx
mov edx, dword [esi + 0x394]
push 0
push eax
mov eax, dword [esp + 0x20]
push eax
push ecx
push ebx
push 0
push edx
call ebp
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
neg eax
mov edx, dword [esp + 0x10]
push 0xcc0020
sbb eax, eax
push edi
and eax, ecx
mov ecx, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x3c]
push edx
mov edx, dword [esi + 0x394]
push eax
push ebx
push ecx
push edx
call ebp
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add ebx, ecx
cmp ebx, eax
jl 0x40e690
mov ecx, dword [esi + 0x100]
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x88]
push eax
push ecx
call edi
lea edx, [esp + 0x88]
mov ecx, esi
push edx
call sub.MFC42.DLL_CWnd::ScreenToClient
mov ecx, dword [esi + 0x180]
lea eax, [esp + 0x98]
push eax
push ecx
call edi
lea edx, [esp + 0x98]
mov ecx, esi
push edx
call sub.MFC42.DLL_CWnd::ScreenToClient
mov eax, dword [esp + 0x9c]
mov edi, dword [esp + 0x94]
mov ecx, dword [esi + 0x3c8]
sub eax, edi
cdq
sub eax, edx
push 0x26a
mov ebx, eax
mov eax, dword [ecx + 0x24]
sar ebx, 1
add ebx, eax
add ebx, edi
mov edi, dword [ecx + 0x1c]
mov ecx, dword [esi + 0x3a0]
add edi, 5
call fcn.00410c80
mov ecx, dword [esi + 0x3a0]
mov dword [esp + 0x28], eax
call fcn.0041c780
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
and eax, 0xffff
push eax
push 2
push eax
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CGdiObject::Attach
mov eax, dword [esi + 0x3a0]
mov ecx, dword [eax + 0x30]
mov dword [esp + 0x28], ecx
call sub.MFC42.DLL_AfxGetModuleState
mov edx, dword [esp + 0x28]
mov dword [eax + 0xc], edx
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x5c]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x3c]
neg eax
sbb eax, eax
and eax, edx
mov edx, dword [esp + 0x1c]
push eax
push edx
call sub.MFC42.DLL_CDC::SelectGdiObject
mov eax, dword [esi + 0x2bc]
sub eax, edi
cmp edi, eax
mov dword [esp + 0x30], eax
jge 0x40e87c
jmp 0x40e826
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x60]
sub eax, edi
cmp ecx, eax
mov dword [esp + 0x10], ecx
jl 0x40e838
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x64]
push 0xcc0020
mov eax, ecx
push 0
cdq
sub eax, edx
mov edx, ebx
sar eax, 1
sub edx, eax
lea eax, [esp + 0x20]
neg eax
sbb eax, eax
push 0
and eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esi + 0x394]
push eax
push edx
push edi
push ecx
call ebp
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x30]
add edi, ecx
cmp edi, eax
jl 0x40e822
mov eax, dword [esi + 0x374]
test eax, eax
je 0x40e8b5
call fcn.00404e10
test eax, eax
je 0x40e89c
push 1
lea ecx, [esi + 0x390]
call sub.MFC42.DLL_CDC::SetLayout
mov ecx, dword [esi + 0x374]
lea edx, [esi + 0x308]
lea eax, [esi + 0x390]
push edx
push eax
call fcn.004039d0
mov eax, dword [esp + 0x58]
test eax, eax
je 0x40e8c0
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x20]
push eax
call sub.MFC42.DLL_CDC::SelectGdiObject
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CDC::DeleteDC
mov esi, dword [esi + 0x3a0]
mov esi, dword [esi + 0x30]
call sub.MFC42.DLL_AfxGetModuleState
lea ecx, [esp + 0x74]
mov dword [eax + 0xc], esi
mov byte [esp + 0xc0], 2
call fcn.0041d968
lea ecx, [esp + 0x18]
mov byte [esp + 0xc0], 1
call fcn.0041d920
mov esi, 0x421a1c
mov dword [esp + 0x3c], esi
lea ecx, [esp + 0x3c]
mov byte [esp + 0xc0], 4
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x3c], 0x421a44
mov dword [esp + 0x4c], esi
lea ecx, [esp + 0x4c]
mov dword [esp + 0xc0], 5
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0xb8]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0xb4
ret