Function at 0x525ad4
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x71a], 0
je 0x526055
mov eax, dword [ebp - 4]
cmp dword [eax + 0x720], 0
je 0x526055
lea ecx, [ebp - 0x4c]
xor edx, edx
mov eax, 0x6e
call fcn.004ae424
test al, al
je 0x526055
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x720]
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 0x4c]
mov eax, 0x5b0
call fcn.004aea88
test al, al
je 0x526048
xor eax, eax
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c4]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x5c]
push eax
call sub.gdi32.dll_CreateBrushIndirect
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0x48], eax
push 4
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_SetStretchBltMode
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x71c]
sub eax, 2
je 0x525bb6
sub eax, 5
je 0x525bb6
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
xor eax, eax
call fcn.0041bba4
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_FillRect
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x71c]
cmp eax, 7
ja case.default.0x525bc8
jmp dword [eax*4 + 0x525bcf]
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0x4c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x720]
mov eax, dword [eax + 0x68]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x720]
mov eax, dword [eax + 0x10]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_BitBlt
jmp case.default.0x525bc8
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0x4c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x720]
mov eax, dword [eax + 0x68]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x720]
mov eax, dword [eax + 0x10]
push eax
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x720]
mov edx, dword [ebp + 0xc]
sub edx, dword [eax + 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_BitBlt
jmp case.default.0x525bc8
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0x4c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x720]
mov eax, dword [eax + 0x68]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x720]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x720]
mov edx, dword [ebp + 8]
sub edx, dword [eax + 0x68]
push edx
push 0
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_BitBlt
jmp case.default.0x525bc8
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0x4c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x720]
mov eax, dword [eax + 0x68]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x720]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x720]
mov edx, dword [ebp + 8]
sub edx, dword [eax + 0x68]
push edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x720]
mov edx, dword [ebp + 0xc]
sub edx, dword [eax + 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_BitBlt
jmp case.default.0x525bc8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x720]
mov edx, dword [ebp - 0xc]
sub edx, dword [eax + 0x10]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x720]
mov edx, dword [ebp + 0x10]
sub edx, dword [eax + 0x68]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x14], 0
jge 0x525d3a
xor eax, eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x18], 0
jge 0x525d45
xor eax, eax
mov dword [ebp - 0x18], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0x4c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x720]
mov eax, dword [eax + 0x68]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x720]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0x18]
shr eax, 1
push eax
mov eax, dword [ebp - 0x14]
shr eax, 1
push eax
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_BitBlt
jmp case.default.0x525bc8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x720]
fild dword [eax + 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x720]
fild dword [eax + 0x68]
call fcn.00403420
fstp qword [ebp - 0x28]
wait
fild dword [ebp + 0xc]
fild dword [ebp + 8]
call fcn.00403420
fstp qword [ebp - 0x30]
wait
xor eax, eax
mov dword [ebp - 0x3c], eax
xor eax, eax
mov dword [ebp - 0x40], eax
fld qword [ebp - 0x28]
fcomp qword [ebp - 0x30]
fnstsw ax
sahf
jbe 0x525dfd
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
fild dword [ebp + 0xc]
fld qword [ebp - 0x28]
call fcn.00403420
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.004a6f24
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 8]
sub eax, dword [ebp - 0x38]
sar eax, 1
jns 0x525df8
adc eax, 0
mov dword [ebp - 0x40], eax
jmp 0x525e28
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
fild dword [ebp + 8]
fmul qword [ebp - 0x28]
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.004a6f24
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0x34]
sar eax, 1
jns 0x525e25
adc eax, 0
mov dword [ebp - 0x3c], eax
fld qword [ebp - 0x28]
fcomp qword [ebp - 0x30]
fnstsw ax
sahf
jbe 0x525e83
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x40]
push eax
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
xor eax, eax
call fcn.0041bba4
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_FillRect
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x6c]
push eax
mov edx, dword [ebp - 0x40]
add edx, dword [ebp - 0x38]
mov ecx, dword [ebp + 0xc]
xor eax, eax
call fcn.0041bba4
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_FillRect
jmp 0x525ed1
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [ebp - 0x3c]
xor edx, edx
xor eax, eax
call fcn.0041bba4
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_FillRect
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0x3c]
add eax, dword [ebp - 0x34]
mov ecx, dword [ebp + 0xc]
xor edx, edx
call fcn.0041bba4
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_FillRect
push 0xcc0020
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x720]
mov eax, dword [eax + 0x68]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x720]
mov eax, dword [eax + 0x10]
push eax
push 0
push 0
mov eax, dword [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_StretchBlt
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_SetStretchBltMode
jmp case.default.0x525bc8
push 4
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_SetStretchBltMode
mov dword [ebp - 0x1c], eax
push 0xcc0020
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x720]
mov eax, dword [eax + 0x68]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x720]
mov eax, dword [eax + 0x10]
push eax
push 0
push 0
mov eax, dword [ebp - 0x4c]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_StretchBlt
jmp case.default.0x525bc8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x720]
cmp dword [eax + 0x10], 1
jl 0x526055
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x720]
cmp dword [eax + 0x68], 1
jl 0x526055
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp + 0x10]
jge case.default.0x525bc8
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0xc]
jge 0x526001
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0x4c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x720]
mov eax, dword [eax + 0x68]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x720]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_BitBlt
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x720]
mov eax, dword [eax + 0x10]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0xc]
jl 0x525fb2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x720]
mov eax, dword [eax + 0x68]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp + 0x10]
jl 0x525fa5
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_SetStretchBltMode
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 0x44]
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x4c]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 0x4c]
push eax
call sub.gdi32.dll_DeleteDC
mov byte [ebp - 0xd], 1
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret 0xc