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

Disassembly:
push 0xffffffffffffffff
push 0x41d819
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.00402a60
mov edi, 0x41fa28
mov dword [esp + 0x4c], edi
lea ecx, [esp + 0x3c]
mov dword [esp + 0xc0], 0
call fcn.00402a60
mov dword [esp + 0x3c], edi
lea ecx, [esp + 0x18]
mov byte [esp + 0xc0], 1
call sub.MFC42.DLL_CDC::CDC
mov ecx, dword [esi + 0x398]
mov byte [esp + 0xc0], 2
call fcn.0041adf0
mov ecx, dword [esi + 0x398]
push 0x258
call fcn.0040fb40
mov ecx, dword [esi + 0x398]
mov ebp, eax
call fcn.0041adf0
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 + 0x398]
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 + 0x388]
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 0x40d3a9
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 + 0x31c]
mov edx, dword [esi + 0x314]
mov ebp, dword [esi + 0x310]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x6e]
sub ecx, edx
mov edx, dword [esi + 0x318]
and eax, 0xffff
push 0
push eax
sub edx, ebp
push 1
push ecx
push edx
lea ebp, [esi + 0x344]
call dword [sym.imp.GDI32.dll_CreateBitmap]
push eax
mov ecx, ebp
call sub.MFC42.DLL_CGdiObject::Attach
test ebp, ebp
je 0x40d41e
mov ebp, dword [ebp + 4]
mov eax, dword [esi + 0x38c]
push ebp
push eax
call sub.MFC42.DLL_CDC::SelectGdiObject
mov dword [esi + 0x34c], eax
mov eax, dword [esi + 0x31c]
mov ebp, dword [esi + 0x314]
mov ecx, dword [esi + 0x318]
mov edx, dword [esi + 0x310]
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 + 0x380]
test eax, eax
je 0x40d46e
mov eax, dword [eax + 4]
push eax
mov eax, dword [esi + 0x38c]
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 + 0x38c]
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 + 0x38c]
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 0x40d5aa
jmp 0x40d51c
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x54]
sub eax, ecx
cmp edx, eax
mov dword [esp + 0x10], edx
jl 0x40d52e
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 + 0x38c]
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 + 0x38c]
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 0x40d518
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x44]
lea eax, [esp + 0x18]
mov ecx, dword [esi + 0x38c]
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 + 0x38c]
push eax
push ecx
push ebx
push edx
call ebp
mov eax, dword [esp + 0x14]
mov ebx, edi
cmp edi, eax
jge 0x40d6a8
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
sub eax, ebx
mov dword [esp + 0x10], ecx
cmp ecx, eax
jl 0x40d636
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 + 0x38c]
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 + 0x38c]
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 0x40d620
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 + 0x3c0]
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 + 0x398]
add edi, 5
call fcn.0040f930
mov ecx, dword [esi + 0x398]
mov dword [esp + 0x28], eax
call fcn.0041adf0
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 + 0x398]
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 0x40d80c
jmp 0x40d7b6
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x60]
sub eax, edi
cmp ecx, eax
mov dword [esp + 0x10], ecx
jl 0x40d7c8
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 + 0x38c]
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 0x40d7b2
mov eax, dword [esi + 0x36c]
test eax, eax
je 0x40d845
call fcn.00404d20
test eax, eax
je 0x40d82c
push 1
lea ecx, [esi + 0x388]
call sub.MFC42.DLL_CDC::SetLayout
mov ecx, dword [esi + 0x36c]
lea edx, [esi + 0x300]
lea eax, [esi + 0x388]
push edx
push eax
call fcn.004039c0
mov eax, dword [esp + 0x58]
test eax, eax
je 0x40d850
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 + 0x398]
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.0041bf78
lea ecx, [esp + 0x18]
mov byte [esp + 0xc0], 1
call fcn.0041bf30
mov esi, 0x41fa14
mov dword [esp + 0x3c], esi
lea ecx, [esp + 0x3c]
mov byte [esp + 0xc0], 4
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x3c], 0x41fa3c
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