Function at 0x52981c
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x212], 0
je 0x529a47
mov eax, esi
call fcn.0041d564
mov dword [ebp - 0x14], eax
cmp dword [ebx + 0x264], 0
jne 0x529931
cmp dword [ebx + 0x20d], 3
jl 0x529931
mov eax, dword [esi + 0x10]
mov edx, dword [ebx + 0x258]
call fcn.0041c4f8
mov eax, dword [ebx + 0x2cf]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov esi, eax
test esi, esi
jl 0x5298ca
inc esi
mov dword [ebp - 8], 0
mov edi, dword [ebp - 8]
imul edi, dword [ebx + 0x20d]
add edi, dword [ebx + 0x27f]
add edi, dword [ebp - 4]
mov eax, dword [ebx + 0x283]
add eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
push 0
mov eax, dword [ebp - 0xc]
push eax
push edi
mov eax, dword [ebp - 0x14]
push eax
call sub.gdi32.dll_MoveToEx
mov eax, dword [ebp - 0xc]
add eax, dword [ebp + 8]
push eax
push edi
mov eax, dword [ebp - 0x14]
push eax
call sub.gdi32.dll_LineTo
inc dword [ebp - 8]
dec esi
jne 0x529884
mov eax, dword [ebx + 0x2cf]
mov edx, dword [eax]
call dword [edx + 0x20]
mov esi, eax
test esi, esi
jl 0x529a47
inc esi
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
imul dword [ebx + 0x20d]
add eax, dword [ebx + 0x283]
add eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov edi, dword [ebx + 0x27f]
add edi, dword [ebp - 4]
push 0
mov eax, dword [ebp - 0xc]
push eax
push edi
mov eax, dword [ebp - 0x14]
push eax
call sub.gdi32.dll_MoveToEx
mov eax, dword [ebp - 0xc]
push eax
add edi, dword [ebp + 0xc]
push edi
mov eax, dword [ebp - 0x14]
push eax
call sub.gdi32.dll_LineTo
inc dword [ebp - 8]
dec esi
jne 0x5298e7
jmp 0x529a47
cmp dword [ebx + 0x20d], 4
jl 0x529a47
mov eax, dword [ebx + 0x283]
add eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0x260]
call fcn.00421cf8
call fcn.0041d564
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x2cf]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov esi, eax
test esi, esi
jl 0x5299c2
inc esi
mov dword [ebp - 8], 0
mov edi, dword [ebp - 8]
imul edi, dword [ebx + 0x20d]
add edi, dword [ebx + 0x27f]
add edi, dword [ebp - 4]
mov eax, 1
sub eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
push 0xcc0020
mov eax, dword [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
push eax
push 1
mov eax, dword [ebp - 0x24]
push eax
push edi
mov eax, dword [ebp - 0x14]
push eax
call sub.gdi32.dll_BitBlt
inc dword [ebp - 8]
dec esi
jne 0x52997b
mov eax, dword [ebx + 0x27f]
add eax, dword [ebp - 4]
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 0x264]
call fcn.00421cf8
call fcn.0041d564
mov edi, eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x2cf]
mov edx, dword [eax]
call dword [edx + 0x20]
mov esi, eax
test esi, esi
jl 0x529a47
inc esi
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
imul dword [ebx + 0x20d]
add eax, dword [ebx + 0x283]
add eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, 1
sub eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
push 0xcc0020
push 0
mov eax, dword [ebp - 0x10]
push eax
push edi
push 1
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.gdi32.dll_BitBlt
inc dword [ebp - 8]
dec esi
jne 0x5299fe
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc