Function at 0x527d80
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x48
mov eax, dword [0x5b22c0]
test eax, eax
push ebx
mov ebx, ecx
mov dword [esp + 4], ebx
jne 0x528280
mov dword [0x5b22c0], 1
call fcn.00528e60
mov eax, dword [0x59bd48]
test eax, eax
je 0x528276
mov eax, dword [0x5b1880]
test eax, eax
je 0x528276
push esi
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
test esi, esi
mov dword [esp + 0x10], esi
je 0x528275
mov eax, dword [0x5b19b0]
test eax, eax
je 0x527df7
mov eax, dword [0x5b1880]
push 0x7e
push eax
mov dword [0x5b19b0], 0
call dword [sym.imp.USER32.dll_KillTimer]
mov edx, dword [0x5b1880]
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 0x528267
test ebx, ebx
push edi
je 0x527e5e
mov edx, dword [ebx + 0xa30]
mov eax, dword [ebx + 0xa38]
cmp edx, eax
je 0x52825f
mov edi, dword [ebx + 0xa2c]
mov ecx, dword [ebx + 0xa34]
sub ecx, edi
mov edi, dword [0x59bd60]
inc ecx
cmp edi, 2
mov dword [esp + 0x38], ecx
jl 0x527e62
sub eax, edx
add eax, 2
mov dword [esp + 0x3c], eax
jmp 0x527e62
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 0x52825f
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ebp
call edi
mov ecx, dword [0x5a5564]
push ecx
mov dword [esp + 0x2c], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov esi, eax
test esi, esi
je 0x528248
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 0x584ef8
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 0x528248
push esi
push ebp
call edi
mov dword [esp + 0x24], eax
call fcn.00527c60
test eax, eax
jne 0x528239
test ebx, ebx
je 0x527fb4
mov eax, dword [ebx + 0xa3c]
test eax, eax
je 0x528239
mov ecx, ebx
call fcn.005273b0
test eax, eax
je 0x528239
lea esi, [ebx + 0xa2c]
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 + 0xa34]
mov dword [esp + 0x48], edx
mov edx, dword [esi]
sub ecx, edx
mov dword [ebx + 0xa34], ecx
mov dword [esi], 0
cmp dword [0x59bd60], 2
jl 0x527f91
mov ecx, dword [ebx + 0xa30]
sub dword [ebx + 0xa38], ecx
mov dword [ebx + 0xa30], 0
push eax
mov edx, ebp
mov ecx, ebx
call fcn.00526b60
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 0x528001
mov esi, dword [0x5b430c]
test esi, esi
je 0x527fe9
mov edi, edi
mov eax, dword [esi + 0xa3c]
test eax, eax
je 0x527fdf
mov ecx, esi
call fcn.005273b0
test eax, eax
je 0x527fdf
push eax
mov edx, ebp
mov ecx, esi
call fcn.00526b60
mov esi, dword [esi + 0xd9c]
test esi, esi
jne 0x527fc0
mov edx, dword [0x59bd60]
mov ecx, dword [0x5b1880]
push 0
push 2
push edx
mov edx, ebp
call fcn.00527600
mov eax, dword [0x5b430c]
test eax, eax
je 0x528194
mov eax, dword [0x5b189c]
test eax, eax
je 0x528194
test ebx, ebx
jne 0x5281b0
mov ecx, dword [0x5b1880]
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 0x528198
mov esi, dword [0x5b430c]
test esi, esi
je 0x5280e2
mov eax, dword [esi + 0xa3c]
test eax, eax
je 0x5280d8
mov eax, dword [esi + 0xa30]
cmp eax, dword [esi + 0xa38]
je 0x5280d8
mov ecx, esi
call fcn.005273b0
test eax, eax
je 0x5280d8
mov eax, dword [esi + 0xa38]
mov ecx, dword [esi + 0xa34]
mov edi, dword [esi + 0xa30]
mov ebx, dword [esi + 0xa2c]
mov edx, dword [0x59bd60]
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 0x528183
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 + 0xd9c]
test esi, esi
jne 0x528065
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
test edi, edi
je 0x528187
mov ecx, dword [0x5b189c]
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 [0x5b189c]
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 0x528132
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x3c]
add ebx, edx
cmp ebx, ecx
jl 0x528130
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 0x528198
test ebx, ebx
jne 0x5281b0
mov edx, dword [0x59bd60]
mov ecx, dword [0x5b1880]
push 0
push 1
push edx
mov edx, ebp
call fcn.00527600
mov ecx, dword [0x5b1880]
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
xor edi, edi
test ebx, ebx
je 0x528207
mov esi, dword [ebx + 0xa2c]
mov eax, dword [ebx + 0xa34]
mov ecx, dword [0x59bd60]
mov edx, dword [ebx + 0xa30]
sub eax, esi
inc eax
cmp ecx, 1
mov dword [esp + 0x30], esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], edx
jg 0x5281f6
mov edi, edx
mov ecx, dword [ebx + 0xa38]
sub ecx, edx
add ecx, 2
mov dword [esp + 0x3c], ecx
jmp 0x528217
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 [0x5b1880]
push esi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
pop ebp
pop esi
mov dword [0x5b22c0], 0
pop ebx
add esp, 0x48
ret