Function at 0x40fdb0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x4fb744]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x4c]
push edi
push eax
mov dword [ebp - 0x3c], esi
call dword [sym.imp.USER32.dll_GetDC]
mov edx, dword [esi + 0x4c]
lea ecx, [ebp - 0x20]
push ecx
mov edi, eax
push edx
mov dword [ebp - 0x58], edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
sub esi, dword [ebp - 0x20]
sub ebx, dword [ebp - 0x1c]
push edi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x44], ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebx
mov edi, eax
mov eax, dword [ebp - 0x58]
push esi
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push edi
mov dword [ebp - 0x4c], eax
call ebx
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 0x2c]
mov ecx, dword [ecx + 0x50]
mov dword [ebp - 0x5c], eax
mov eax, dword [edx]
cmp ecx, 3
jne 0x40ff23
movzx ecx, al
mov edx, eax
shr edx, 8
shr eax, 0x10
mov dword [ebp - 0x34], ecx
movzx ecx, dl
movzx edx, al
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x24], 0
test esi, esi
jle 0x41016a
fild dword [ebp - 0x28]
mov esi, dword [ebp - 0x4c]
fstp qword [ebp - 0x54]
fild dword [ebp - 0x24]
fmul qword [0x4de400]
fdiv qword [ebp - 0x54]
call fcn.004b4780
mov ecx, dword [ebp - 0x3c]
mov ecx, dword [ecx + 0x44]
test ecx, ecx
jne 0x40fe94
movzx esi, byte [ebp - 0x2c]
movzx edx, byte [ebp - 0x30]
shl esi, 8
or esi, edx
movzx eax, al
shl esi, 8
or esi, eax
jmp 0x40feca
cmp ecx, 1
jne 0x40feb0
movzx esi, byte [ebp - 0x2c]
movzx edx, byte [ebp - 0x34]
shl esi, 8
movzx ecx, al
or esi, ecx
shl esi, 8
or esi, edx
jmp 0x40feca
cmp ecx, 2
jne 0x40feca
movzx ecx, byte [ebp - 0x34]
movzx esi, al
movzx eax, byte [ebp - 0x30]
shl esi, 8
or esi, eax
shl esi, 8
or esi, ecx
push esi
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
push edi
mov dword [ebp - 0x40], eax
call ebx
mov edx, dword [ebp - 0x24]
push 0
push 0
push edx
push edi
mov dword [ebp - 0x38], eax
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x24]
push eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_LineTo]
mov edx, dword [ebp - 0x38]
push edx
push edi
call ebx
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp eax, dword [ebp - 0x28]
jl 0x40fe62
jmp 0x410167
cmp ecx, 1
jne 0x41007b
push eax
call fcn.00410d60
mov ecx, eax
shr ecx, 0x18
mov dword [ebp - 0x34], ecx
mov ecx, eax
shr ecx, 0x10
movzx edx, cl
mov ecx, eax
shr ecx, 8
mov dword [ebp - 0x30], edx
movzx edx, cl
movzx eax, al
add esp, 4
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x24], 0
test esi, esi
jle 0x41016a
fild dword [ebp - 0x28]
mov esi, dword [ebp - 0x4c]
fstp qword [ebp - 0x54]
fild dword [ebp - 0x24]
fmul qword [0x4de3f8]
fdiv qword [ebp - 0x54]
call fcn.004b4780
mov ecx, dword [ebp - 0x3c]
mov ecx, dword [ecx + 0x44]
test ecx, ecx
jne 0x40ffac
movzx edx, byte [ebp - 0x30]
movzx ecx, byte [ebp - 0x38]
movzx esi, al
movzx eax, byte [ebp - 0x2c]
shl esi, 8
or esi, edx
shl esi, 8
or esi, eax
shl esi, 8
or esi, ecx
jmp 0x410019
cmp ecx, 1
jne 0x40ffd1
movzx esi, byte [ebp - 0x34]
movzx ecx, byte [ebp - 0x38]
shl esi, 8
movzx edx, al
movzx eax, byte [ebp - 0x2c]
or esi, edx
shl esi, 8
or esi, eax
shl esi, 8
or esi, ecx
jmp 0x410019
cmp ecx, 2
jne 0x40fff6
movzx esi, byte [ebp - 0x34]
movzx edx, byte [ebp - 0x30]
movzx ecx, byte [ebp - 0x38]
shl esi, 8
or esi, edx
shl esi, 8
movzx eax, al
or esi, eax
shl esi, 8
or esi, ecx
jmp 0x410019
cmp ecx, 3
jne 0x410019
movzx esi, byte [ebp - 0x34]
movzx edx, byte [ebp - 0x30]
movzx ecx, byte [ebp - 0x2c]
shl esi, 8
or esi, edx
shl esi, 8
or esi, ecx
movzx edx, al
shl esi, 8
or esi, edx
push esi
call fcn.00410e80
add esp, 4
push eax
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
push edi
mov dword [ebp - 0x48], eax
call ebx
push 0
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x24]
push 0
push eax
push edi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x24]
push ecx
push edx
push edi
call dword [sym.imp.GDI32.dll_LineTo]
mov eax, dword [ebp - 0x40]
push eax
push edi
call ebx
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp eax, dword [ebp - 0x28]
jl 0x40ff71
jmp 0x410167
cmp ecx, 2
jne 0x41016a
mov ecx, 0x64
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x38]
push edx
push eax
mov dword [ebp - 0x10], 0x168
call fcn.004110e0
xor esi, esi
add esp, 0x10
mov dword [ebp - 0x24], esi
cmp dword [ebp - 0x28], esi
jle 0x410167
fild dword [ebp - 0x28]
fstp qword [ebp - 0x54]
nop
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x44]
fild dword [ebp + eax*4 - 0x10]
fimul dword [ebp - 0x24]
fdiv qword [ebp - 0x54]
call fcn.004b4780
mov ecx, dword [ebp - 0x3c]
mov ecx, dword [ecx + 0x44]
test ecx, ecx
jne 0x4100ea
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
push edx
push ecx
push eax
jmp 0x41010e
mov edx, dword [ebp - 0x3c]
mov ecx, dword [edx + 0x44]
cmp ecx, 1
jne 0x410100
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x38]
push ecx
push eax
push edx
jmp 0x41010e
cmp ecx, 2
jne 0x410119
mov ecx, dword [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x34]
push eax
push ecx
call fcn.004111a0
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
push edx
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
push edi
mov dword [ebp - 0x40], eax
call ebx
push 0
push 0
push esi
push edi
mov dword [ebp - 0x48], eax
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [ebp - 0x44]
push eax
push esi
push edi
call dword [sym.imp.GDI32.dll_LineTo]
mov ecx, dword [ebp - 0x48]
push ecx
push edi
call ebx
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
inc esi
mov dword [ebp - 0x24], esi
cmp esi, dword [ebp - 0x28]
jl 0x4100c0
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x44]
push 0xcc0020
push 0
push 0
push edi
push eax
push esi
mov esi, dword [ebp - 0x58]
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [ebp - 0x5c]
push ecx
push edi
call ebx
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x4c]
push esi
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b3f21
mov esp, ebp
pop ebp
ret