Function at 0x584950
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff64
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp byte [0x6012f8], 0
jne 0x585178
mov byte [0x6012f8], 1
mov byte [ebp - 0x2d], 0
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 8]
cmp byte [eax + 0x59], 0
jne 0x5849ad
mov eax, dword [ebp - 8]
test byte [eax + 0x1c], 0x10
jne 0x5849ad
cmp byte [ebp + 8], 0
jne 0x585171
mov eax, dword [ebp - 8]
call fcn.004b33b8
test eax, eax
jle 0x585171
xor eax, eax
push ebp
push 0x58516a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_GetClipBox
dec eax
je 0x5849eb
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x3c]
je 0x5849eb
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x38]
jne 0x584a10
mov eax, dword [ebp - 8]
call fcn.004b7904
xor ecx, ecx
mov edx, 0x16
call fcn.00585188
mov byte [0x6012f8], 0
call fcn.00405c38
jmp 0x585178
mov byte [ebp - 0x5c], 0
mov byte [ebp - 0x5b], 0
lea eax, [ebp - 0x8c]
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.00575178
mov eax, dword [ebp - 8]
call fcn.004b33b8
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x20]
jge 0x585061
push ebp
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004b337c
call fcn.005848b0
pop ecx
test al, al
je 0x585052
mov eax, dword [ebp - 8]
mov edx, dword [0x4ce824]
call fcn.00405288
test al, al
je 0x584acb
mov eax, dword [ebp - 8]
cmp byte [eax + 0x29e], 2
jne 0x584acb
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004b337c
cmp byte [eax + 0x5d], 0
je 0x584acb
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004b337c
mov edx, dword [0x4a78bc]
call fcn.00405288
test al, al
je 0x584acb
push 0
mov dx, 0x12
xor eax, eax
call fcn.0040cf84
push eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004b337c
mov edx, 0xa100
pop ecx
call fcn.004afe24
cmp byte [ebp - 0x2d], 0
jne 0x584e48
push 0
call sub.user32.dll_GetDC
mov edi, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x4c]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x48]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 0x28], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x2d], 1
mov esi, dword [ebp - 0x20]
dec esi
test esi, esi
jl 0x584e48
inc esi
xor ebx, ebx
push ebp
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004b337c
call fcn.005848b0
pop ecx
test al, al
je 0x584e40
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004b337c
test byte [eax + 0x50], 0x40
jne 0x584e0c
cmp byte [ebp - 0x5c], 2
jne 0x584bef
cmp dword [ebp - 0x8c], 0
je 0x584bef
push 0xcc0020
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004b337c
mov eax, dword [eax + 0x44]
add eax, dword [ebp - 0x80]
push eax
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004b337c
mov eax, dword [eax + 0x40]
add eax, dword [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x8c]
call fcn.0045cbac
call fcn.00457314
push eax
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004b337c
mov eax, dword [eax + 0x4c]
push eax
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004b337c
mov eax, dword [eax + 0x48]
push eax
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004b337c
mov eax, dword [eax + 0x44]
push eax
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004b337c
mov eax, dword [eax + 0x40]
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.gdi32.dll_BitBlt
jmp 0x584e40
cmp dword [ebp - 0x8c], 0
je 0x584de1
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004b337c
lea edx, [ebp - 0x54]
call fcn.004ae1c4
lea edx, [ebp - 0x54]
mov ecx, dword [ebp - 0x88]
mov eax, dword [ebp - 0x24]
call fcn.00578db4
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 0x68]
jge 0x584c74
push 0xcc0020
mov eax, dword [ebp - 0x50]
add eax, dword [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x54]
add eax, dword [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x8c]
call fcn.0045cbac
call fcn.00457314
push eax
mov eax, dword [ebp - 0x68]
sub eax, dword [ebp - 0x50]
push eax
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004b337c
mov eax, dword [eax + 0x48]
push eax
mov eax, dword [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.gdi32.dll_BitBlt
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ebp - 0x54]
jle 0x584cc9
push 0xcc0020
mov eax, dword [ebp - 0x50]
add eax, dword [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x54]
add eax, dword [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x8c]
call fcn.0045cbac
call fcn.00457314
push eax
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004b337c
mov eax, dword [eax + 0x4c]
push eax
mov eax, dword [ebp - 0x6c]
sub eax, dword [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.gdi32.dll_BitBlt
mov eax, dword [ebp - 0x8c]
mov edx, dword [eax]
call dword [edx + 0x24]
sub eax, dword [ebp - 0x60]
mov edx, dword [ebp - 0x48]
add edx, dword [ebp - 0x80]
cmp eax, edx
jge 0x584d4d
cmp dword [ebp - 0x80], 0
jl 0x584d4d
mov eax, dword [ebp - 0x8c]
mov edx, dword [eax]
call dword [edx + 0x24]
sub eax, dword [ebp - 0x60]
mov edx, dword [ebp - 0x48]
sub edx, eax
mov dword [ebp - 0x1c], edx
push 0xcc0020
mov eax, dword [ebp - 0x48]
add eax, dword [ebp - 0x80]
sub eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x54]
add eax, dword [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x8c]
call fcn.0045cbac
call fcn.00457314
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004b337c
mov eax, dword [eax + 0x48]
push eax
mov eax, dword [ebp - 0x48]
sub eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.gdi32.dll_BitBlt
mov eax, dword [ebp - 0x8c]
mov edx, dword [eax]
call dword [edx + 0x30]
sub eax, dword [ebp - 0x64]
mov edx, dword [ebp - 0x4c]
add edx, dword [ebp - 0x84]
cmp eax, edx
jge 0x584e40
cmp dword [ebp - 0x84], 0
jl 0x584e40
mov eax, dword [ebp - 0x8c]
mov edx, dword [eax]
call dword [edx + 0x30]
sub eax, dword [ebp - 0x64]
mov edx, dword [ebp - 0x4c]
sub edx, eax
mov dword [ebp - 0x1c], edx
push 0xcc0020
mov eax, dword [ebp - 0x50]
add eax, dword [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x4c]
add eax, dword [ebp - 0x84]
sub eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x8c]
call fcn.0045cbac
call fcn.00457314
push eax
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004b337c
mov eax, dword [eax + 0x4c]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x4c]
sub eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.gdi32.dll_BitBlt
jmp 0x584e40
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004b337c
lea edx, [ebp - 0x9c]
call fcn.004ae1c4
lea edx, [ebp - 0x9c]
mov ecx, dword [ebp - 0x88]
mov eax, dword [ebp - 0x24]
call fcn.00578db4
jmp 0x584e40
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004b337c
call fcn.0058482c
push eax
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004b337c
lea edx, [ebp - 0x9c]
call fcn.004ae1c4
lea edx, [ebp - 0x9c]
mov eax, dword [ebp - 0x24]
pop ecx
call fcn.00578db4
inc ebx
dec esi
jne 0x584b2a
mov eax, dword [ebp - 0x24]
push eax
call sub.gdi32.dll_SaveDC
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004b337c
lea edx, [ebp - 0x9c]
call fcn.004ae1c4
lea eax, [ebp - 0x9c]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_RectVisible
test eax, eax
jne 0x584e95
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004b337c
xor ecx, ecx
mov edx, 0x16
call fcn.005851ac
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004b337c
mov eax, dword [eax + 0x44]
push eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004b337c
mov edx, dword [eax + 0x40]
mov eax, dword [ebp - 0x24]
pop ecx
call fcn.004acd0c
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004b337c
mov eax, dword [eax + 0x4c]
push eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004b337c
mov eax, dword [eax + 0x48]
push eax
push 0
push 0
mov eax, dword [ebp - 0x24]
push eax
call sub.gdi32.dll_IntersectClipRect
mov eax, dword [ebp - 8]
test byte [eax + 0x54], 0x80
je 0x584f11
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004b337c
mov ebx, dword [eax + 0x54]
or ebx, dword [0x585184]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004b337c
mov dword [eax + 0x54], ebx
xor eax, eax
push ebp
push 0x58504b
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004b337c
mov edx, dword [0x512d2c]
call fcn.00405288
test al, al
je 0x584fbf
mov eax, dword [ebp - 8]
test byte [eax + 0x1c], 0x10
je 0x584fbf
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004b337c
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x1a8]
call fcn.00456324
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x1a8]
mov edx, dword [ebp - 0x24]
call fcn.0045739c
xor eax, eax
push ebp
push 0x584fb8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x34]
mov edx, dword [eax]
call dword [edx + 0xa0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x584fd9
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x1a8]
xor edx, edx
call fcn.0045739c
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x1a8]
call fcn.00456428
ret
push 0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004b337c
mov ecx, dword [ebp - 0x24]
mov edx, 0xf
call fcn.004afe24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x585052
mov eax, dword [ebp - 8]
test byte [eax + 0x54], 0x80
je 0x585013
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004b337c
mov ebx, dword [0x585184]
not ebx
and ebx, dword [eax + 0x54]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004b337c
mov dword [eax + 0x54], ebx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004b337c
mov eax, dword [eax + 0x44]
neg eax
push eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004b337c
mov edx, dword [eax + 0x40]
neg edx
mov eax, dword [ebp - 0x24]
pop ecx
call fcn.004acd0c
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.gdi32.dll_RestoreDC
ret
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x20]
jl 0x584a44
cmp byte [ebp - 0x2d], 0
je 0x585137
xor ebx, ebx
cmp ebx, dword [ebp - 0x20]
jge 0x585137
push ebp
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004b337c
call fcn.005848b0
pop ecx
test al, al
je 0x58512d
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004b337c
mov eax, dword [eax + 0x44]
add eax, dword [ebp - 0xc]
push eax
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004b337c
mov eax, dword [eax + 0x40]
add eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.gdi32.dll_GetPixel
cmp eax, 0xff00ff
je 0x58512d
push 0xcc0020
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004b337c
mov eax, dword [eax + 0x44]
push eax
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004b337c
mov eax, dword [eax + 0x40]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004b337c
mov eax, dword [eax + 0x4c]
push eax
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004b337c
mov eax, dword [eax + 0x48]
push eax
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004b337c
mov eax, dword [eax + 0x44]
add eax, dword [ebp - 0xc]
push eax
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004b337c
mov eax, dword [eax + 0x40]
add eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_BitBlt
inc ebx
cmp ebx, dword [ebp - 0x20]
jl 0x585076
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x585171
cmp byte [ebp - 0x2d], 0
je 0x585169
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 0x24]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 0x28]
push eax
call sub.gdi32.dll_DeleteObject
ret
mov byte [0x6012f8], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc