Function at 0x51c6d0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x48
mov eax, dword [0x5a00b0]
test eax, eax
push ebx
mov ebx, ecx
mov dword [esp + 4], ebx
jne 0x51cbd0
mov dword [0x5a00b0], 1
call fcn.0051ad70
mov eax, dword [0x589bd0]
test eax, eax
je 0x51cbc6
mov eax, dword [0x59f690]
test eax, eax
je 0x51cbc6
push esi
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
test esi, esi
mov dword [esp + 0x10], esi
je 0x51cbc5
mov eax, dword [0x59f7c0]
test eax, eax
je 0x51c747
mov eax, dword [0x59f690]
push 0x7e
push eax
mov dword [0x59f7c0], 0
call dword [sym.imp.USER32.dll_KillTimer]
mov edx, dword [0x59f690]
push ebp
lea ecx, [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebp, eax
test ebp, ebp
je 0x51cbb7
test ebx, ebx
push edi
je 0x51c7ae
mov edx, dword [ebx + 0xa28]
mov eax, dword [ebx + 0xa30]
cmp edx, eax
je 0x51cbaf
mov edi, dword [ebx + 0xa24]
mov ecx, dword [ebx + 0xa2c]
sub ecx, edi
mov edi, dword [0x589be8]
inc ecx
cmp edi, 2
mov dword [esp + 0x38], ecx
jl 0x51c7b2
sub eax, edx
add eax, 2
mov dword [esp + 0x3c], eax
jmp 0x51c7b2
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
test eax, eax
mov dword [esp + 0x2c], eax
je 0x51cbaf
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ebp
call edi
mov ecx, dword [0x5940f4]
push ecx
mov dword [esp + 0x2c], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov esi, eax
test esi, esi
je 0x51cb98
push esi
lea edx, [esp + 0x34]
push edx
push ebp
call dword [sym.imp.USER32.dll_FillRect]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0x575e00
push 0
push 0
push 0
mov eax, dword [esp + 0x28]
push 0
push 1
push 0
push 0
push 0
push 0x190
push 0
push 0
push 0
push 0x48
push 0x5a
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_MulDiv]
neg eax
push eax
call dword [sym.imp.GDI32.dll_CreateFontA]
mov esi, eax
test esi, esi
mov dword [esp + 0x20], esi
je 0x51cb98
push esi
push ebp
call edi
mov dword [esp + 0x24], eax
call fcn.0051b8e0
test eax, eax
jne 0x51cb89
test ebx, ebx
je 0x51c904
mov eax, dword [ebx + 0xa18]
test eax, eax
je 0x51cb89
mov ecx, ebx
call fcn.0051ab00
test eax, eax
je 0x51cb89
lea esi, [ebx + 0xa24]
mov ecx, esi
mov edi, dword [ecx]
mov edx, dword [ecx + 4]
mov dword [esp + 0x44], edx
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x4c], ecx
mov ecx, dword [ebx + 0xa2c]
mov dword [esp + 0x48], edx
mov edx, dword [esi]
sub ecx, edx
mov dword [ebx + 0xa2c], ecx
mov dword [esi], 0
cmp dword [0x589be8], 2
jl 0x51c8e1
mov ecx, dword [ebx + 0xa28]
sub dword [ebx + 0xa30], ecx
mov dword [ebx + 0xa28], 0
push eax
mov edx, ebp
mov ecx, ebx
call fcn.0051bad0
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov dword [esi], edi
mov dword [esi + 4], edx
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
jmp 0x51c951
mov esi, dword [0x5a1af8]
test esi, esi
je 0x51c939
mov edi, edi
mov eax, dword [esi + 0xa18]
test eax, eax
je 0x51c92f
mov ecx, esi
call fcn.0051ab00
test eax, eax
je 0x51c92f
push eax
mov edx, ebp
mov ecx, esi
call fcn.0051bad0
mov esi, dword [esi + 0xd84]
test esi, esi
jne 0x51c910
mov edx, dword [0x589be8]
mov ecx, dword [0x59f690]
push 0
push 2
push edx
mov edx, ebp
call fcn.0051b280
mov eax, dword [0x5a1af8]
test eax, eax
je 0x51cae4
mov eax, dword [0x59f6ac]
test eax, eax
je 0x51cae4
test ebx, ebx
jne 0x51cb00
mov ecx, dword [0x59f690]
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x34]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateRectRgn]
test eax, eax
mov dword [esp + 0x14], eax
je 0x51cae8
mov esi, dword [0x5a1af8]
test esi, esi
je 0x51ca32
mov eax, dword [esi + 0xa18]
test eax, eax
je 0x51ca28
mov eax, dword [esi + 0xa28]
cmp eax, dword [esi + 0xa30]
je 0x51ca28
mov ecx, esi
call fcn.0051ab00
test eax, eax
je 0x51ca28
mov eax, dword [esi + 0xa30]
mov ecx, dword [esi + 0xa2c]
mov edi, dword [esi + 0xa28]
mov ebx, dword [esi + 0xa24]
mov edx, dword [0x589be8]
add eax, 2
push eax
inc ecx
push ecx
push edi
push ebx
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov edi, eax
test edi, edi
je 0x51cad3
mov eax, dword [esp + 0x14]
push 4
push edi
push eax
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ebx, dword [esp + 0x10]
mov esi, dword [esi + 0xd84]
test esi, esi
jne 0x51c9b5
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
test edi, edi
je 0x51cad7
mov ecx, dword [0x59f6ac]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x14]
push edx
push ebp
mov dword [esp + 0x24], eax
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov ecx, dword [0x59f6ac]
lea eax, [esp + 0x40]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [esp + 0x44]
xor ebx, ebx
lea esp, [esp]
xor esi, esi
mov edx, dword [esp + 0x48]
push 0xcc0020
push 0
push 0
push edi
push edx
push eax
push ebx
push esi
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x38]
add esi, eax
cmp esi, ecx
jl 0x51ca82
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x3c]
add ebx, edx
cmp ebx, ecx
jl 0x51ca80
push 0
push ebp
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov eax, dword [esp + 0x1c]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x51cae8
test ebx, ebx
jne 0x51cb00
mov edx, dword [0x589be8]
mov ecx, dword [0x59f690]
push 0
push 1
push edx
mov edx, ebp
call fcn.0051b280
mov ecx, dword [0x59f690]
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
xor edi, edi
test ebx, ebx
je 0x51cb57
mov esi, dword [ebx + 0xa24]
mov eax, dword [ebx + 0xa2c]
mov ecx, dword [0x589be8]
mov edx, dword [ebx + 0xa28]
sub eax, esi
inc eax
cmp ecx, 1
mov dword [esp + 0x30], esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], edx
jg 0x51cb46
mov edi, edx
mov ecx, dword [ebx + 0xa30]
sub ecx, edx
add ecx, 2
mov dword [esp + 0x3c], ecx
jmp 0x51cb67
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push 0xcc0020
push edi
push 0
push ebp
push ecx
push eax
push edx
mov edx, dword [esp + 0x34]
push esi
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov esi, dword [esp + 0x20]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x24]
push eax
push ebp
call edi
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x28]
push ecx
push ebp
call edi
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov esi, dword [esp + 0x18]
push ebp
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
mov eax, dword [0x59f690]
push esi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
pop ebp
pop esi
mov dword [0x5a00b0], 0
pop ebx
add esp, 0x48
ret