Function at 0x51c314
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff60
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
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 [0x585f38], 0
jne 0x51cb30
mov byte [0x585f38], 1
mov byte [ebp - 0x1d], 0
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 8]
cmp byte [eax + 0x57], 0
jne 0x51c371
mov eax, dword [ebp - 8]
test byte [eax + 0x1c], 0x10
jne 0x51c371
cmp byte [ebp + 8], 0
jne 0x51cb29
mov eax, dword [ebp - 8]
call fcn.00448700
test eax, eax
jle 0x51cb29
xor eax, eax
push ebp
push 0x51cb22
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_GetClipBox
dec eax
je 0x51c3af
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x40]
je 0x51c3af
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x3c]
jne 0x51c3d4
mov eax, dword [ebp - 8]
call fcn.0044b9d0
xor ecx, ecx
mov edx, 0x16
call fcn.0051cb50
mov byte [0x585f38], 0
call fcn.004045b0
jmp 0x51cb30
mov byte [ebp - 0x60], 0
mov byte [ebp - 0x5f], 0
lea eax, [ebp - 0x90]
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.0051fd94
mov eax, dword [ebp - 8]
call fcn.00448700
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x2c]
jge 0x51ca37
push ebp
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
call fcn.004486c4
call fcn.0051c274
pop ecx
test al, al
je 0x51ca28
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
call fcn.004486c4
lea edx, [ebp - 0xa0]
call fcn.00444b70
lea eax, [ebp - 0xa0]
xor ecx, ecx
lea edx, [ebp - 0x48]
call fcn.00533d2c
test al, al
je 0x51ca28
mov eax, dword [ebp - 8]
mov edx, dword [0x45adb8]
call fcn.00403efc
test al, al
je 0x51c4b5
mov eax, dword [ebp - 8]
cmp byte [eax + 0x22f], 2
jne 0x51c4b5
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
call fcn.004486c4
cmp byte [eax + 0x5b], 0
je 0x51c4b5
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
call fcn.004486c4
mov edx, dword [0x4414d4]
call fcn.00403efc
test al, al
je 0x51c4b5
push 0
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
call fcn.004486c4
mov ecx, 0x120000
mov edx, 0xa100
call fcn.0044639c
cmp byte [ebp - 0x1d], 0
jne 0x51c818
push 0
call sub.user32.dll_GetDC
mov dword [ebp - 0x18], 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
mov eax, dword [ebp - 0x18]
push eax
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x18]
push eax
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x1d], 1
mov edi, dword [ebp - 0x2c]
dec edi
test edi, edi
jl 0x51c818
inc edi
xor ebx, ebx
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004486c4
mov esi, eax
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004486c4
lea edx, [ebp - 0xa0]
call fcn.00444b70
lea eax, [ebp - 0xa0]
xor ecx, ecx
lea edx, [ebp - 0x48]
call fcn.00533d2c
test al, al
je 0x51c810
push ebp
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004486c4
call fcn.0051c274
pop ecx
test al, al
je 0x51c810
test byte [esi + 0x50], 0x40
je 0x51c590
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004486c4
mov edx, dword [0x4414d4]
call fcn.00403efc
test al, al
je 0x51c7e2
cmp byte [ebp - 0x60], 2
jne 0x51c5e7
cmp dword [ebp - 0x90], 0
je 0x51c5e7
push 0xcc0020
mov eax, dword [esi + 0x44]
add eax, dword [ebp - 0x84]
push eax
mov eax, dword [esi + 0x40]
add eax, dword [ebp - 0x88]
push eax
mov eax, dword [ebp - 0x90]
call fcn.00428ccc
call fcn.00424800
push eax
mov eax, dword [esi + 0x4c]
push eax
mov eax, dword [esi + 0x48]
push eax
mov eax, dword [esi + 0x44]
push eax
mov eax, dword [esi + 0x40]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.gdi32.dll_BitBlt
jmp 0x51c810
cmp dword [ebp - 0x90], 0
je 0x51c7bd
lea edx, [ebp - 0x58]
mov eax, esi
call fcn.00444b70
push 0
lea edx, [ebp - 0x58]
mov ecx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x1c]
call fcn.00524110
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ebp - 0x54]
jle 0x51c65f
push 0xcc0020
mov eax, dword [ebp - 0x54]
add eax, dword [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x58]
add eax, dword [ebp - 0x88]
push eax
mov eax, dword [ebp - 0x90]
call fcn.00428ccc
call fcn.00424800
push eax
mov eax, dword [ebp - 0x6c]
sub eax, dword [ebp - 0x54]
push eax
mov eax, dword [esi + 0x48]
push eax
mov eax, dword [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.gdi32.dll_BitBlt
mov eax, dword [ebp - 0x70]
cmp eax, dword [ebp - 0x58]
jle 0x51c6ad
push 0xcc0020
mov eax, dword [ebp - 0x54]
add eax, dword [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x58]
add eax, dword [ebp - 0x88]
push eax
mov eax, dword [ebp - 0x90]
call fcn.00428ccc
call fcn.00424800
push eax
mov eax, dword [esi + 0x4c]
push eax
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.gdi32.dll_BitBlt
mov eax, dword [ebp - 0x90]
mov edx, dword [eax]
call dword [edx + 0x20]
sub eax, dword [ebp - 0x64]
mov edx, dword [ebp - 0x4c]
add edx, dword [ebp - 0x84]
cmp eax, edx
jge 0x51c730
cmp dword [ebp - 0x84], 0
jl 0x51c730
mov eax, dword [ebp - 0x90]
mov edx, dword [eax]
call dword [edx + 0x20]
sub eax, dword [ebp - 0x64]
mov edx, dword [ebp - 0x4c]
sub edx, eax
mov dword [ebp - 0x28], edx
push 0xcc0020
mov eax, dword [ebp - 0x4c]
add eax, dword [ebp - 0x84]
sub eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x58]
add eax, dword [ebp - 0x88]
push eax
mov eax, dword [ebp - 0x90]
call fcn.00428ccc
call fcn.00424800
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [esi + 0x48]
push eax
mov eax, dword [ebp - 0x4c]
sub eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.gdi32.dll_BitBlt
mov eax, dword [ebp - 0x90]
mov edx, dword [eax]
call dword [edx + 0x2c]
sub eax, dword [ebp - 0x68]
mov edx, dword [ebp - 0x50]
add edx, dword [ebp - 0x88]
cmp eax, edx
jge 0x51c810
cmp dword [ebp - 0x88], 0
jl 0x51c810
mov eax, dword [ebp - 0x90]
mov edx, dword [eax]
call dword [edx + 0x2c]
sub eax, dword [ebp - 0x68]
mov edx, dword [ebp - 0x50]
sub edx, eax
mov dword [ebp - 0x28], edx
push 0xcc0020
mov eax, dword [ebp - 0x54]
add eax, dword [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x50]
add eax, dword [ebp - 0x88]
sub eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x90]
call fcn.00428ccc
call fcn.00424800
push eax
mov eax, dword [esi + 0x4c]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x50]
sub eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.gdi32.dll_BitBlt
jmp 0x51c810
push 0
lea edx, [ebp - 0xa0]
mov eax, esi
call fcn.00444b70
lea edx, [ebp - 0xa0]
mov ecx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x1c]
call fcn.00524110
jmp 0x51c810
push 0
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004486c4
call fcn.0051c0c0
push eax
lea edx, [ebp - 0xa0]
mov eax, esi
call fcn.00444b70
lea edx, [ebp - 0xa0]
mov eax, dword [ebp - 0x1c]
pop ecx
call fcn.00524110
inc ebx
dec edi
jne 0x51c51b
mov eax, dword [ebp - 0x1c]
push eax
call sub.gdi32.dll_SaveDC
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
call fcn.004486c4
lea edx, [ebp - 0xa0]
call fcn.00444b70
lea eax, [ebp - 0xa0]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_RectVisible
test eax, eax
jne 0x51c865
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
call fcn.004486c4
xor ecx, ecx
mov edx, 0x16
call fcn.0051cb64
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
call fcn.004486c4
mov eax, dword [eax + 0x44]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
call fcn.004486c4
mov edx, dword [eax + 0x40]
mov eax, dword [ebp - 0x1c]
pop ecx
call fcn.00443b0c
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
call fcn.004486c4
mov eax, dword [eax + 0x4c]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
call fcn.004486c4
mov eax, dword [eax + 0x48]
push eax
push 0
push 0
mov eax, dword [ebp - 0x1c]
push eax
call sub.gdi32.dll_IntersectClipRect
mov eax, dword [ebp - 8]
test byte [eax + 0x54], 0x80
je 0x51c8e4
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
call fcn.004486c4
mov bx, word [eax + 0x54]
or bx, word [0x51cb3c]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
call fcn.004486c4
mov word [eax + 0x54], bx
xor eax, eax
push ebp
push 0x51ca21
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
test byte [eax + 0x1c], 0x10
je 0x51c992
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
call fcn.004486c4
mov edx, dword [0x4312f4]
call fcn.00403efc
test al, al
je 0x51c992
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
call fcn.004486c4
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0x160]
call fcn.00424318
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0x160]
mov edx, dword [ebp - 0x1c]
call fcn.00424880
xor eax, eax
push ebp
push 0x51c98b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
call dword [edx + 0x8c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51c9ac
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0x160]
xor edx, edx
call fcn.00424880
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0x160]
call fcn.004246f8
ret
push 0
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
call fcn.004486c4
mov ecx, dword [ebp - 0x1c]
mov edx, 0xf
call fcn.0044639c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51ca28
mov eax, dword [ebp - 8]
test byte [eax + 0x54], 0x80
je 0x51c9e9
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
call fcn.004486c4
mov bx, word [0x51cb3c]
not ebx
and bx, word [eax + 0x54]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
call fcn.004486c4
mov word [eax + 0x54], bx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
call fcn.004486c4
mov eax, dword [eax + 0x44]
neg eax
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
call fcn.004486c4
mov edx, dword [eax + 0x40]
neg edx
mov eax, dword [ebp - 0x1c]
pop ecx
call fcn.00443b0c
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.gdi32.dll_RestoreDC
ret
inc dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x2c]
jl 0x51c408
cmp byte [ebp - 0x1d], 0
je 0x51caef
xor ebx, ebx
cmp ebx, dword [ebp - 0x2c]
jge 0x51caef
push ebp
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004486c4
call fcn.0051c274
pop ecx
test al, al
je 0x51cae5
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004486c4
lea edx, [ebp - 0xa0]
call fcn.00444b70
lea eax, [ebp - 0xa0]
xor ecx, ecx
lea edx, [ebp - 0x48]
call fcn.00533d2c
test al, al
je 0x51cae5
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004486c4
mov esi, eax
mov eax, dword [esi + 0x44]
add eax, dword [ebp - 0xc]
push eax
mov eax, dword [esi + 0x40]
add eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.gdi32.dll_GetPixel
cmp eax, 0xff00ff
je 0x51cae5
push 0xcc0020
mov eax, dword [esi + 0x44]
push eax
mov edi, dword [esi + 0x40]
push edi
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [esi + 0x4c]
push eax
mov eax, dword [esi + 0x48]
push eax
mov eax, dword [esi + 0x44]
add eax, dword [ebp - 0xc]
push eax
add edi, dword [ebp - 0x10]
push edi
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_BitBlt
inc ebx
cmp ebx, dword [ebp - 0x2c]
jl 0x51ca4c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51cb29
cmp byte [ebp - 0x1d], 0
je 0x51cb21
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 0x1c]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 0x30]
push eax
call sub.gdi32.dll_DeleteObject
ret
mov byte [0x585f38], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8