Function at 0x4063b0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x447150]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x38], eax
call dword [sym.imp.USER32.dll_GetDC]
mov esi, dword [0x4538f0]
mov edi, eax
mov edx, dword fs:[0x2c]
mov ecx, dword [0x447d58]
mov edx, dword [edx + esi*4]
cmp ecx, dword [edx + 4]
jg 0x4066b2
mov esi, dword [ebp - 0x18]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x20], 0
mov eax, dword [esi + 0xff8]
test eax, eax
je 0x406418
push eax
push edi
call ebx
mov dword [ebp - 0x20], eax
mov eax, dword [esi]
test eax, eax
je 0x406429
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [ebp - 8]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0xc]
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x34], eax
call ebx
push 8
mov dword [ebp - 0x30], eax
call sub.gdiplus.dll_GdipAlloc
mov ebx, eax
mov dword [ebp - 0x24], ebx
test ebx, ebx
je 0x406479
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push dword [ebp - 0x1c]
call sub.gdiplus.dll_GdipCreateFromHDC
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [ebx], eax
jmp 0x40647b
xor ebx, ebx
push dword [ebp - 8]
push dword [ebp - 0xc]
push 0
push 0
push dword [0x447084]
push dword [ebx]
call sub.gdiplus.dll_GdipFillRectangleI
test eax, eax
je 0x406499
mov dword [ebx + 4], eax
cmp dword [esi + 0x14], 3
jne 0x406534
push 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x28], 0
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push eax
push 0x438
push 0x780
call fcn.004068f0
movd xmm0, dword [ebp - 0x18]
add esp, 0x20
cvtdq2pd xmm0, xmm0
mov ecx, dword [ebp - 0x28]
divsd xmm0, qword [0x43c960]
cvttsd2si eax, xmm0
sub ecx, eax
mov eax, dword [ebp - 0x24]
cdq
sub eax, edx
mov dword [ebp - 0x18], ecx
mov ecx, eax
sar ecx, 1
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov ecx, dword [ebp - 0x2c]
add ecx, 0xffffffb0
add ecx, eax
mov eax, dword [esi + 0x220]
test eax, eax
je 0x40652b
push dword [ebp - 0x18]
mov eax, dword [eax + 4]
push ecx
push eax
jmp 0x406560
push dword [ebp - 0x18]
xor eax, eax
push ecx
push eax
jmp 0x406560
mov eax, dword [ebp - 8]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0xc]
cdq
sub eax, edx
sar ecx, 1
mov edx, dword [esi + 0x220]
sub ecx, 0x1e
sar eax, 1
sub eax, 0x50
test edx, edx
je 0x40655b
mov edx, dword [edx + 4]
jmp 0x40655d
xor edx, edx
push ecx
push eax
push edx
push dword [ebx]
call sub.gdiplus.dll_GdipDrawImageI
test eax, eax
je 0x40656e
mov dword [ebx + 4], eax
push 0xcc0020
push 0
push 0
push dword [ebp - 0x1c]
push dword [ebp - 8]
push dword [ebp - 0xc]
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
push 5
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [esi + 4], 0
je 0x40665f
cmp dword [esi + 0x18], 0
push dword [esi + 0xff8]
push edi
jne 0x406616
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xffffff
push edi
mov dword [ebp - 0x20], eax
call dword [sym.imp.GDI32.dll_SetTextColor]
push 1
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
push 6
push edi
call dword [sym.imp.GDI32.dll_SetTextAlign]
add esi, 0x3a
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4065e1
mov eax, dword [ebp - 0xc]
sub ecx, edx
push ecx
cdq
push esi
sub eax, edx
push 0x11
sar eax, 1
push eax
push edi
call dword [sym.imp.GDI32.dll_TextOutA]
mov eax, dword [ebp - 0x20]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push edi
call esi
push 2
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
jmp 0x406665
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xffffff
push edi
mov dword [ebp - 0x20], eax
call dword [sym.imp.GDI32.dll_SetTextColor]
mov esi, dword [sym.imp.GDI32.dll_SetBkMode]
push 1
push edi
call esi
mov eax, dword [ebp - 0xc]
push 1
cdq
push 0x43c576
sub eax, edx
push 0x11
sar eax, 1
push eax
push edi
call dword [sym.imp.GDI32.dll_TextOutA]
mov eax, dword [ebp - 0x20]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push 2
push edi
call esi
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x406670
push eax
push edi
call esi
push dword [ebp - 0x30]
push edi
call esi
push dword [ebp - 0x34]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0x1c]
call dword [sym.imp.GDI32.dll_DeleteDC]
push edi
push dword [ebp - 0x38]
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [ebx]
call sub.gdiplus.dll_GdipDeleteGraphics
push ebx
call sub.gdiplus.dll_GdipFree
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004271bb
mov esp, ebp
pop ebp
ret 4
push 0x447d58
call fcn.004277cf
add esp, 4
cmp dword [0x447d58], 0xffffffff
jne 0x4063f7
push 0x447d50
push 0
push ecx
mov dword [esp], 0x3f800000
push 0xff000000
call sub.gdiplus.dll_GdipCreatePen1
push 0x43bbe0
mov dword [0x447d54], eax
call fcn.00427682
add esp, 4
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
push 0xff3a4147
call sub.gdiplus.dll_GdipCreateSolidFill
mov dword [0x447088], eax
mov eax, dword [ebp - 0x1c]
push 0x43bbc0
mov dword [0x447084], eax
call fcn.00427682
push 0x447d58
call fcn.00427790
add esp, 8
jmp 0x4063f7