Function at 0x53b590
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x58
mov eax, dword [0x5f7250]
test eax, eax
push esi
mov esi, ecx
mov dword [esp + 4], esi
jne 0x53bb0d
mov dword [0x5f7250], 1
call fcn.0053acc0
cmp eax, 0xffffffff
je 0x53bafa
cmp eax, 1
jne 0x53b5c9
call fcn.004e8020
mov eax, dword [0x5f6bf8]
test eax, eax
je 0x53bafa
mov ecx, dword [0x5bfdbc]
test ecx, ecx
je 0x53bafa
push ebp
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x14], ebp
je 0x53baf9
mov eax, dword [0x5f6d20]
test eax, eax
je 0x53b61b
mov eax, dword [0x5f6bf8]
push 0x7e
push eax
mov dword [0x5f6d20], 0
call dword [sym.imp.USER32.dll_KillTimer]
mov edx, dword [0x5f6bf8]
push edi
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 edi, eax
test edi, edi
je 0x53baea
test esi, esi
push ebx
je 0x53b682
mov edx, dword [esi + 0xa50]
mov eax, dword [esi + 0xa58]
cmp edx, eax
je 0x53bae2
mov ecx, dword [esi + 0xa54]
mov ebx, dword [esi + 0xa4c]
mov esi, dword [0x5bfdd8]
sub ecx, ebx
inc ecx
cmp esi, 2
mov dword [esp + 0x38], ecx
jl 0x53b686
sub eax, edx
add eax, 2
mov dword [esp + 0x3c], eax
jmp 0x53b686
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
push eax
push ecx
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x24], ebx
je 0x53bae2
push ebx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [0x5c9dac]
push ecx
mov dword [esp + 0x30], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov esi, eax
test esi, esi
je 0x53bacf
push esi
lea edx, [esp + 0x34]
push edx
push edi
call dword [sym.imp.USER32.dll_FillRect]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0x5a6034
push 0
push 0
push 0
push 0
push 1
push 0
push 0
push 0
push 0x190
push 0
push 0
push 0
push 0x48
push 0x5a
push ebp
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 0x53bacf
push esi
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x28], eax
call fcn.0053b450
test eax, eax
jne 0x53babc
mov eax, dword [0x5f6c0c]
test eax, eax
jne 0x53b752
xor ecx, ecx
call fcn.0055be00
mov dword [esp + 0x18], eax
jmp 0x53b75a
mov dword [esp + 0x18], 0
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x53b7f1
mov eax, dword [ecx + 0xa5c]
test eax, eax
je 0x53babc
call fcn.0053a610
test eax, eax
je 0x53babc
mov esi, dword [esp + 0x10]
add esi, 0xa4c
mov ecx, esi
mov ebx, dword [ecx]
mov ebp, dword [ecx + 4]
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x48], edx
mov edx, dword [esi]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x10]
sub dword [ecx + 0xa54], edx
mov dword [esi], 0
cmp dword [0x5bfdd8], 2
jl 0x53b7d1
mov edx, dword [ecx + 0xa50]
sub dword [ecx + 0xa58], edx
mov dword [ecx + 0xa50], 0
push eax
mov edx, edi
call fcn.00539b30
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov dword [esi], ebx
mov dword [esi + 4], ebp
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
jmp 0x53ba07
mov esi, dword [0x5f92e4]
test esi, esi
je 0x53b843
mov ebp, dword [sym.imp.USER32.dll_IntersectRect]
mov eax, dword [esi + 0xa5c]
test eax, eax
je 0x53b839
mov ecx, esi
call fcn.0053a610
mov ebx, eax
test ebx, ebx
je 0x53b839
lea edx, [esi + 0xa4c]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x48]
push ecx
call ebp
test eax, eax
je 0x53b839
push ebx
mov edx, edi
mov ecx, esi
call fcn.00539b30
mov esi, dword [esi + 0xe08]
test esi, esi
jne 0x53b801
mov eax, dword [0x5f92e4]
test eax, eax
je 0x53b9f4
mov eax, dword [0x5f6c0c]
test eax, eax
je 0x53b9f4
mov eax, dword [0x5f6bf8]
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov ebp, dword [sym.imp.GDI32.dll_CreateRectRgn]
push ecx
mov ecx, dword [esp + 0x34]
push edx
push eax
push ecx
call ebp
test eax, eax
mov dword [esp + 0x14], eax
je 0x53b9f4
mov ebx, dword [0x5f92e4]
test ebx, ebx
je 0x53b938
mov eax, dword [ebx + 0xa5c]
test eax, eax
je 0x53b92a
mov edx, dword [ebx + 0xa50]
cmp edx, dword [ebx + 0xa58]
je 0x53b92a
mov ecx, ebx
call fcn.0053a610
test eax, eax
je 0x53b92a
lea eax, [ebx + 0xa4c]
push eax
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 0x18]
test eax, eax
mov eax, dword [esp + 0x4c]
je 0x53b8eb
inc dword [esp + 0x40]
jmp 0x53b8ef
inc dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
add eax, 2
mov edx, eax
push edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x4c]
push eax
push ecx
push edx
call ebp
mov esi, eax
test esi, esi
je 0x53b9e9
mov eax, dword [esp + 0x14]
push 4
push esi
push eax
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ebx, dword [ebx + 0xe08]
test ebx, ebx
jne 0x53b8a4
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
test esi, esi
je 0x53b9e9
mov eax, dword [0x5f6c0c]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push esi
call ebx
mov ecx, dword [esp + 0x14]
push ecx
push edi
mov ebp, eax
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov eax, dword [0x5f6c0c]
lea edx, [esp + 0x50]
push edx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x44], 0
xor eax, eax
mov dword [esp + 0x40], eax
lea esp, [esp]
mov edx, dword [esp + 0x58]
push 0xcc0020
push 0
push 0
push esi
push edx
push ecx
mov ecx, dword [esp + 0x5c]
push ecx
push eax
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x38]
add eax, ecx
cmp eax, edx
mov dword [esp + 0x40], eax
jl 0x53b990
mov eax, dword [esp + 0x44]
add eax, dword [esp + 0x58]
cmp eax, dword [esp + 0x3c]
mov dword [esp + 0x44], eax
jl 0x53b986
push 0
push edi
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push ebp
push esi
call ebx
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x5bfdd8]
mov ecx, dword [0x5f6bf8]
push eax
mov edx, edi
call fcn.00476a20
mov edx, dword [0x5f6bf8]
lea ecx, [esp + 0x30]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x10]
xor edx, edx
cmp ecx, edx
mov dword [esp + 0x44], edx
mov dword [esp + 0x14], edx
je 0x53ba81
mov ebx, dword [ecx + 0xa4c]
mov eax, dword [ecx + 0xa54]
mov ebp, dword [0x5bfdd8]
mov esi, dword [ecx + 0xa50]
sub eax, ebx
inc eax
cmp ebp, 1
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], esi
jg 0x53ba5b
mov dword [esp + 0x44], esi
mov ecx, dword [ecx + 0xa58]
mov ebp, dword [esp + 0x18]
sub ecx, esi
add ecx, 2
test ebp, ebp
mov dword [esp + 0x3c], ecx
je 0x53ba91
mov edx, 1
mov dword [esp + 0x14], 2
jmp 0x53ba91
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov ebp, dword [esp + 0x44]
push 0xcc0020
push ebp
mov ebp, dword [esp + 0x1c]
push edx
push edi
push ecx
sub eax, ebp
mov ebp, dword [esp + 0x30]
push eax
push esi
add edx, ebx
push edx
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x2c]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop ebx
mov edx, dword [0x5f6bf8]
push ebp
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop ebp
xor edx, edx
xor ecx, ecx
call fcn.0054ffc0
mov dword [0x5f7250], 0
pop esi
add esp, 0x58
ret