Function at 0x512c50
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff64
push ebx
push esi
push edi
mov dword [ebp - 0x78], eax
mov esi, dword [ebp + 8]
add esi, 0xfffffffc
mov eax, dword [esi]
mov eax, dword [eax + 0xd0]
mov ebx, dword [eax + 0xac]
cmp byte [ebx + 0x1c], 0
je 0x51301c
cmp byte [ebx + 0x24], 0
je 0x51301c
xor edx, edx
push ebp
push 0x512ffc
push dword fs:[edx]
mov dword fs:[edx], esp
cmp eax, dword [0x647d34]
jne 0x512cee
push 0xcc0020
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
push eax
mov eax, dword [0x647d30]
call fcn.0042203c
call fcn.0041db18
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp + 8]
mov edi, dword [edx - 0x10]
sub eax, edi
push eax
xor eax, eax
mov al, byte [ebx + 0x30]
push eax
mov eax, dword [ebp + 8]
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
push eax
mov eax, dword [ebp - 0x78]
push eax
call sub.gdi32.dll_BitBlt
jmp 0x512ff2
mov dword [0x647d34], eax
mov eax, dword [esi]
mov eax, dword [eax + 0xd0]
mov eax, dword [eax + 0xac]
xor edx, edx
mov dl, byte [eax + 0x30]
mov eax, dword [0x647d30]
mov ecx, dword [eax]
call dword [ecx + 0x40]
lea edx, [ebp - 0x8c]
mov eax, dword [esi]
mov eax, dword [eax + 0xd0]
call fcn.005113a8
mov edx, dword [ebp - 0x88]
mov eax, dword [0x647d30]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [esi]
mov eax, dword [eax + 0xd0]
mov eax, dword [eax + 0xac]
mov eax, dword [eax + 0x34]
push eax
mov eax, dword [0x647d30]
call fcn.0042203c
call fcn.0041db18
push eax
call sub.gdi32.dll_SetBkColor
mov eax, dword [esi]
mov eax, dword [eax + 0xd0]
mov eax, dword [eax + 0xac]
mov eax, dword [eax + 0x20]
mov edx, dword [eax]
call dword [edx + 0x2c]
test eax, eax
jle 0x512ee4
mov eax, dword [esi]
mov eax, dword [eax + 0xd0]
mov eax, dword [eax + 0xac]
mov eax, dword [eax + 0x20]
mov edx, dword [eax]
call dword [edx + 0x20]
test eax, eax
jle 0x512ee4
push 1
mov eax, dword [0x647d30]
call fcn.0042203c
call fcn.0041db18
push eax
call sub.gdi32.dll_SetBkMode
mov eax, dword [esi]
mov eax, dword [eax + 0xd0]
mov ebx, dword [eax + 0xac]
mov eax, dword [ebx + 0x20]
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
xor eax, eax
mov al, byte [ebx + 0x30]
pop edx
mov ecx, edx
cdq
idiv ecx
mov dword [ebp - 0x80], eax
lea edx, [ebp - 0x8c]
mov eax, dword [esi]
mov eax, dword [eax + 0xd0]
call fcn.005113a8
mov eax, dword [ebp - 0x88]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0xd0]
mov eax, dword [eax + 0xac]
mov eax, dword [eax + 0x20]
mov edx, dword [eax]
call dword [edx + 0x20]
pop edx
xchg edx, eax
mov ecx, edx
cdq
idiv ecx
test eax, eax
jl 0x512f8d
inc eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x7c], 0
mov ebx, dword [ebp - 0x80]
test ebx, ebx
jl 0x512ed0
inc ebx
xor edi, edi
push 0xcc0020
push 0
push 0
mov eax, dword [esi]
mov eax, dword [eax + 0xd0]
mov eax, dword [eax + 0xac]
mov eax, dword [eax + 0x20]
call fcn.0042203c
call fcn.0041db18
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0xd0]
mov eax, dword [eax + 0xac]
mov eax, dword [eax + 0x20]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0xd0]
mov eax, dword [eax + 0xac]
mov eax, dword [eax + 0x20]
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0xd0]
mov eax, dword [eax + 0xac]
mov eax, dword [eax + 0x20]
mov edx, dword [eax]
call dword [edx + 0x20]
imul dword [ebp - 0x7c]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0xd0]
mov eax, dword [eax + 0xac]
mov eax, dword [eax + 0x20]
mov edx, dword [eax]
call dword [edx + 0x2c]
imul edi
push eax
mov eax, dword [0x647d30]
call fcn.0042203c
call fcn.0041db18
push eax
call sub.gdi32.dll_BitBlt
inc edi
dec ebx
jne 0x512e2d
inc dword [ebp - 0x7c]
dec dword [ebp - 0x84]
jne 0x512e1f
jmp 0x512f8d
mov eax, dword [esi]
mov eax, dword [eax + 0xd0]
mov eax, dword [eax + 0xac]
mov ebx, dword [eax + 0x54]
cmp byte [ebx + 0x1c], 0
je 0x512f2c
mov eax, dword [0x647d30]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, dword [0x647d30]
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
mov eax, dword [0x647d30]
call fcn.0042203c
call fcn.0041db18
mov edx, eax
mov eax, ebx
pop ecx
call fcn.00510e38
jmp 0x512f8d
mov eax, dword [0x647d30]
call fcn.0042203c
mov eax, dword [eax + 0x14]
mov edx, dword [esi]
mov edx, dword [edx + 0xd0]
mov edx, dword [edx + 0xac]
mov edx, dword [edx + 0x34]
call fcn.0041cf0c
mov eax, dword [0x647d30]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [ebp - 0x9c]
push eax
mov eax, dword [0x647d30]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.00411cec
lea eax, [ebp - 0x9c]
push eax
mov eax, dword [0x647d30]
call fcn.0042203c
pop edx
call fcn.0041d5ec
push ebp
mov eax, dword [0x647d30]
call fcn.00512ac0
pop ecx
push 0xcc0020
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
push eax
mov eax, dword [0x647d30]
call fcn.0042203c
call fcn.0041db18
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp + 8]
mov ebx, dword [edx - 0x10]
sub eax, ebx
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0xd0]
mov eax, dword [eax + 0xac]
movzx eax, byte [eax + 0x30]
push eax
mov eax, dword [ebp + 8]
push ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
push eax
mov eax, dword [ebp - 0x78]
push eax
call sub.gdi32.dll_BitBlt
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51301c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret