Function at 0x409360
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x459601
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x476028]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
push edi
mov eax, dword [0x476028]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0x18]
mov esi, ecx
mov ecx, dword [ebp + 0xc]
cmp ecx, 0x14
jne 0x4093b8
mov byte [eax], 1
jmp 0x40962e
cmp ecx, 0x201
jne 0x4093d3
mov dword [esi + 0x5c], 2
mov dword [esi + 0x60], 1
jmp 0x409619
cmp ecx, 0x202
jne 0x4093e3
mov byte [eax], 1
jmp 0x409619
cmp ecx, 0xf
jne 0x4095e2
push 0x40
mov byte [eax], 1
lea eax, [esp + 0x58]
push 0
push eax
call sub.MSVCR80.dll_memset
mov edx, dword [esi + 0x40]
add esp, 0xc
lea ecx, [esp + 0x54]
push ecx
push edx
call dword [sym.imp.USER32.dll_BeginPaint]
push ebx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call sub.MFC80U.DLL_Ordinal_2361
mov edi, eax
lea eax, [esp + 0x34]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [esp + 0x24]
call sub.MFC80U.DLL_Ordinal_347
xor eax, eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], vtable.CBitmap.0
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], vtable.CBrush.0
cmp edi, eax
mov byte [esp + 0xa8], 2
je 0x409463
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x28]
call sub.MFC80U.DLL_Ordinal_1270
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
sub ecx, dword [esp + 0x34]
push eax
push ecx
mov ecx, dword [edi + 4]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x20]
call sub.MFC80U.DLL_Ordinal_1271
push 0xffffff
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x18]
call sub.MFC80U.DLL_Ordinal_1271
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
push edx
push eax
call sub.MFC80U.DLL_Ordinal_5633
cmp dword [esi + 0x44], 0xffffffff
mov ebx, eax
je 0x4094e4
call fcn.004105c0
mov ecx, dword [esi + 0x44]
push ecx
add eax, 0xc
call fcn.00410760
add eax, 0xc
push eax
lea ecx, [esp + 0x28]
call sub.MFC80U.DLL_Ordinal_5638
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
push edx
lea eax, [esp + 0x38]
push eax
push ecx
call dword [sym.imp.USER32.dll_FillRect]
push 1
lea ecx, [esp + 0x28]
call sub.MFC80U.DLL_Ordinal_5727
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call fcn.00409ce0
mov ecx, dword [esi + 0x40]
lea eax, [esp + 0x44]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x4c]
sub ecx, dword [esp + 0x44]
push 0xcc0020
push edx
sub eax, edx
mov edx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x34]
push edx
mov edx, dword [edi + 4]
push eax
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x5c]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [ebx + 4]
test eax, eax
je 0x409569
push eax
mov eax, dword [esp + 0x2c]
push eax
call sub.MFC80U.DLL_Ordinal_5633
lea ecx, [esp + 0x14]
call sub.MFC80U.DLL_Ordinal_1925
lea ecx, [esp + 0x1c]
call sub.MFC80U.DLL_Ordinal_1925
lea ecx, [esp + 0x24]
call sub.MFC80U.DLL_Ordinal_1920
mov ecx, edi
call sub.MFC80U.DLL_Ordinal_1920
mov edx, dword [esi + 0x40]
lea ecx, [esp + 0x54]
push ecx
push edx
call dword [sym.imp.USER32.dll_EndPaint]
mov byte [esp + 0xa8], 1
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], vtable.CBrush.0
call fcn.00407b40
mov byte [esp + 0xa8], 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], vtable.CBitmap.0
call fcn.00407b40
lea ecx, [esp + 0x24]
mov dword [esp + 0xa8], 0xffffffff
call sub.MFC80U.DLL_Ordinal_602
jmp 0x40962e
cmp ecx, 5
jne 0x40960a
mov ecx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x14]
push eax
push ecx
push 5
push ebx
mov ecx, esi
call fcn.004149d0
mov edx, dword [esi + 0x40]
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x40962e
cmp ecx, 0x200
jne 0x40962e
mov dword [esi + 0x5c], 1
mov eax, dword [ebp + 0x14]
movsx ecx, ax
shr eax, 0x10
movsx eax, ax
push eax
push ecx
mov ecx, esi
call fcn.0040a0d0
mov eax, 1
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.00452313
mov esp, ebp
pop ebp
ret 0x14