Function at 0x508830
Capabilities:
Capture screenshot

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5751c9
push eax
mov dword fs:[0], esp
sub esp, 0x88
push ebp
push esi
push edi
mov edi, dword [esp + 0xa4]
cmp edi, 0xffffffff
mov esi, ecx
je 0x508bb5
mov ebp, dword [esp + 0xa8]
cmp ebp, 0xffffffff
je 0x508bb5
test edi, edi
jl 0x508bb5
call fcn.00506610
cmp edi, eax
jge 0x508bb5
test ebp, ebp
jl 0x508bb5
mov ecx, esi
call fcn.00506610
cmp ebp, eax
jge 0x508bb5
cmp edi, ebp
je 0x508bb5
mov eax, dword [esi + 0x154]
test eax, eax
jne 0x5088c1
mov eax, dword [esi + 0x1c]
push 1
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x508bb5
push esi
lea ecx, [esp + 0x30]
call fcn.005678b0
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x64]
push ecx
push edx
mov dword [esp + 0xa4], 0
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [esp + 0x44]
mov ecx, esi
push eax
call fcn.00504360
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x48]
sub ecx, edx
test ecx, ecx
jle 0x508ba1
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x44]
sub edx, ecx
test edx, edx
jle 0x508ba1
lea eax, [esp + 0x84]
push ebx
push eax
push edi
mov ecx, esi
call fcn.005037f0
lea ecx, [esp + 0x78]
push ecx
push ebp
mov ecx, esi
call fcn.005037f0
mov ecx, dword [esp + 0x84]
mov ebx, dword [esp + 0x7c]
mov edx, dword [esp + 0x68]
mov eax, ecx
sub eax, ebx
mov ebx, dword [esp + 0x70]
sub ebx, edx
cmp edi, ebp
jge 0x50895d
mov edx, dword [esp + 0xa8]
mov edi, ebp
sub edi, edx
jmp 0x50895f
sub edi, ebp
imul edi, eax
cmp dword [esp + 0xa8], ebp
jge 0x508975
mov edx, dword [esp + 0x54]
mov dword [esp + 0x14], edx
jmp 0x508979
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x20]
call fcn.00566f61
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x30]
neg eax
sbb eax, eax
mov byte [esp + 0xa0], 1
and eax, ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x24]
call fcn.00567018
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0x5a8c70
mov eax, dword [esp + 0x34]
push edi
push ebx
push eax
mov byte [esp + 0xac], 2
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x1c]
call fcn.00567b58
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x18]
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call fcn.00567159
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x30]
neg eax
sbb eax, eax
push 0xcc0020
and eax, ecx
push edx
push 0
push eax
mov eax, dword [esp + 0x34]
push edi
push ebx
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0x54]
cmp ecx, ebp
jge 0x508a39
mov eax, dword [esp + 0x94]
jmp 0x508a3d
mov eax, edx
sub eax, edi
cmp ecx, ebp
mov dword [esp + 0x10], eax
jge 0x508a55
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x84]
jmp 0x508a5c
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x70]
mov ebp, dword [esp + 0x68]
sub eax, ebp
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x10]
cmp ebp, eax
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x64], edx
jge 0x508aed
mov ecx, dword [esi + 0x3c]
lea edx, [esp + 0x58]
push ecx
push edx
lea ecx, [esp + 0x38]
call fcn.0056b80d
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x20]
neg eax
sbb eax, eax
push 0xcc0020
and eax, ecx
push 0
push 0
push eax
mov eax, dword [esp + 0x44]
push edi
push ebx
push ebp
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esi + 0xe0]
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 0x7e2
call fcn.0050aaa0
mov ecx, dword [esi + 0x154]
mov eax, dword [esp + 0x10]
add ebp, ecx
cmp ebp, eax
jle 0x508a86
jmp 0x508b52
mov edx, dword [esi + 0x3c]
lea eax, [esp + 0x58]
push edx
push eax
lea ecx, [esp + 0x38]
call fcn.0056b80d
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x20]
neg eax
sbb eax, eax
push 0xcc0020
and eax, ecx
mov ecx, dword [esp + 0x38]
push 0
push 0
push eax
push edi
push ebx
push ebp
push 0
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esi + 0xe0]
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 0x7e2
call fcn.0050aaa0
mov ecx, dword [esi + 0x154]
mov eax, dword [esp + 0x10]
sub ebp, ecx
cmp ebp, eax
jge 0x508aed
mov eax, dword [esp + 0x44]
pop ebx
test eax, eax
je 0x508b5e
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x24]
push eax
call fcn.00567159
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov dword [esp + 0x14], 0x5a8c64
lea ecx, [esp + 0x14]
mov byte [esp + 0x9c], 3
call fcn.00567baf
lea ecx, [esp + 0x1c]
mov byte [esp + 0x9c], 0
call fcn.00567096
lea ecx, [esp + 0x2c]
mov dword [esp + 0x9c], 0xffffffff
call fcn.00567922
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x94
ret 8