Function at 0x404800
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40
mov eax, dword [0x4616c8]
push ebx
cdq
sub eax, edx
push ebp
mov ebx, eax
mov eax, dword [ecx + 0x1c]
push esi
push edi
sar ebx, 1
push eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
call fcn.00432972
mov ebp, dword [eax + 4]
mov dword [esp + 0x28], eax
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0x40
push 0x40
push ebp
mov esi, eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push esi
mov dword [esp + 0x2c], eax
call edi
mov dword [esp + 0x20], eax
mov eax, dword [0x4616e0]
test eax, eax
je 0x4048d6
cmp eax, 2
je 0x4048d6
cmp eax, 1
je 0x40487a
cmp eax, 3
jne 0x40491c
mov ecx, 0x40
sub ecx, ebx
add ebx, 0x40
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
mov dword [esp + 0x14], ebx
fmul qword [0x44ce08]
fstp qword [esp + 0x48]
fild dword [esp + 0x14]
fmul qword [0x44ce08]
fstp qword [esp + 0x38]
fild dword [esp + 0x18]
fmul qword [0x44ce08]
fld qword [0x44ce00]
fsub st(1)
fmul qword [0x44ce08]
fstp qword [esp + 0x40]
fadd qword [0x44ce00]
fmul qword [0x44ce08]
fstp qword [esp + 0x30]
jmp 0x40491c
mov edx, 0x40
sub edx, ebx
add ebx, 0x40
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
mov dword [esp + 0x18], ebx
fmul qword [0x44ce08]
fst qword [esp + 0x48]
fild dword [esp + 0x18]
fmul qword [0x44ce08]
fst qword [esp + 0x30]
fstp qword [esp + 0x38]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
fstp qword [esp + 0x40]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
push 1
call dword [sym.imp.GDI32.dll_GetStockObject]
push 0
push 0
push 5
mov dword [esp + 0x24], eax
call dword [sym.imp.GDI32.dll_CreatePen]
mov edx, dword [0x4616c4]
mov dword [esp + 0x14], eax
push edx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ebx, eax
mov eax, dword [esp + 0x18]
push eax
push esi
call edi
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
push ecx
push esi
call edi
push 0x41
push 0x41
push 0
push 0
push esi
mov dword [esp + 0x30], eax
call dword [sym.imp.GDI32.dll_Rectangle]
mov eax, dword [0x4616d0]
test eax, eax
je 0x4049ff
push ebx
push esi
call edi
mov eax, dword [0x4616e0]
test eax, eax
je 0x4049c8
cmp eax, 1
je 0x4049c8
cmp eax, 2
je 0x404997
cmp eax, 3
jne 0x4049f7
fld qword [esp + 0x30]
call fcn.0041a0e0
fld qword [esp + 0x38]
push eax
call fcn.0041a0e0
fld qword [esp + 0x44]
push eax
call fcn.0041a0e0
fld qword [esp + 0x50]
push eax
call fcn.0041a0e0
push eax
push esi
call dword [sym.imp.GDI32.dll_Rectangle]
jmp 0x4049f7
fld qword [esp + 0x30]
call fcn.0041a0e0
fld qword [esp + 0x38]
push eax
call fcn.0041a0e0
fld qword [esp + 0x44]
push eax
call fcn.0041a0e0
fld qword [esp + 0x50]
push eax
call fcn.0041a0e0
push eax
push esi
call dword [sym.imp.GDI32.dll_Ellipse]
mov edx, dword [esp + 0x18]
push edx
push esi
call edi
mov eax, dword [esp + 0x1c]
push eax
push esi
call edi
push ebx
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
call ebx
mov ecx, dword [esp + 0x14]
push ecx
call ebx
push 0xcc0020
push 0
push 0
push esi
push 0x40
push 0x40
push 0xb4
push 0x11d
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0x20]
push edx
push esi
call edi
mov eax, dword [esp + 0x24]
push eax
call ebx
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov edx, dword [ecx + 4]
mov ecx, dword [eax + 0x1c]
push edx
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret