Function at 0x54bd30
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, eax
cmp dword [ebx + 0x314], 0
je 0x54c289
mov eax, dword [ebx + 0xc]
call fcn.0044c66c
test al, al
je 0x54c289
mov eax, dword [ebx + 0xc]
call fcn.0044c368
push eax
call sub.user32.dll_GetDC
mov esi, eax
xor eax, eax
mov dword [ebp - 0x40], eax
mov eax, dword [ebx + 0x234]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x40]
push eax
call sub.gdi32.dll_CreateBrushIndirect
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
push esi
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0x34], eax
push 4
push esi
call sub.gdi32.dll_SetStretchBltMode
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x314]
call fcn.0042c324
call fcn.00427aa4
mov eax, dword [ebx + 0x310]
sub eax, 2
je 0x54bddf
sub eax, 5
je 0x54bddf
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
xor eax, eax
call fcn.00419cd8
lea eax, [ebp - 0x50]
push eax
push esi
call sub.user32.dll_FillRect
mov eax, dword [ebx + 0x310]
cmp eax, 7
ja case.default.0x54bdee
jmp dword [eax*4 + 0x54bdf5]
push 0xcc0020
push 0
push 0
mov eax, dword [ebx + 0x314]
call fcn.0042c324
call fcn.00427ec4
push eax
mov eax, dword [ebx + 0x314]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, dword [ebx + 0x314]
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
push 0
push 0
push esi
call sub.gdi32.dll_BitBlt
jmp case.default.0x54bdee
push 0xcc0020
push 0
push 0
mov eax, dword [ebx + 0x314]
call fcn.0042c324
call fcn.00427ec4
push eax
mov eax, dword [ebx + 0x314]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, dword [ebx + 0x314]
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
push 0
mov eax, dword [ebx + 0x314]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, dword [ebp + 0xc]
sub edx, eax
push edx
push esi
call sub.gdi32.dll_BitBlt
jmp case.default.0x54bdee
push 0xcc0020
push 0
push 0
mov eax, dword [ebx + 0x314]
call fcn.0042c324
call fcn.00427ec4
push eax
mov eax, dword [ebx + 0x314]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, dword [ebx + 0x314]
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
mov eax, dword [ebx + 0x314]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, dword [ebp + 8]
sub edx, eax
push edx
push 0
push esi
call sub.gdi32.dll_BitBlt
jmp case.default.0x54bdee
push 0xcc0020
push 0
push 0
mov eax, dword [ebx + 0x314]
call fcn.0042c324
call fcn.00427ec4
push eax
mov eax, dword [ebx + 0x314]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, dword [ebx + 0x314]
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
mov eax, dword [ebx + 0x314]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, dword [ebp + 8]
sub edx, eax
push edx
mov eax, dword [ebx + 0x314]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, dword [ebp + 0xc]
sub edx, eax
push edx
push esi
call sub.gdi32.dll_BitBlt
jmp case.default.0x54bdee
mov eax, dword [ebx + 0x314]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edi, dword [ebp - 4]
sub edi, eax
mov eax, dword [ebx + 0x314]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, dword [ebp + 0x10]
sub edx, eax
mov dword [ebp - 8], edx
test edi, edi
jge 0x54bf7e
xor edi, edi
cmp dword [ebp - 8], 0
jge 0x54bf89
xor eax, eax
mov dword [ebp - 8], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebx + 0x314]
call fcn.0042c324
call fcn.00427ec4
push eax
mov eax, dword [ebx + 0x314]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, dword [ebx + 0x314]
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
mov eax, dword [ebp - 8]
shr eax, 1
push eax
shr edi, 1
push edi
push esi
call sub.gdi32.dll_BitBlt
jmp case.default.0x54bdee
mov eax, dword [ebx + 0x314]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov dword [ebp - 0x54], eax
fild dword [ebp - 0x54]
fstp xword [ebp - 0x60]
wait
mov eax, dword [ebx + 0x314]
mov edx, dword [eax]
call dword [edx + 0x20]
mov dword [ebp - 0x64], eax
fild dword [ebp - 0x64]
fld xword [ebp - 0x60]
fdivrp st(1)
fstp qword [ebp - 0x18]
wait
fild dword [ebp + 0xc]
fild dword [ebp + 8]
fdivp st(1)
fstp qword [ebp - 0x20]
wait
xor edi, edi
xor eax, eax
mov dword [ebp - 0x2c], eax
fld qword [ebp - 0x18]
fcomp qword [ebp - 0x20]
fnstsw ax
sahf
seta al
test al, al
je 0x54c047
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
fild dword [ebp + 0xc]
fdiv qword [ebp - 0x18]
call fcn.00402cfc
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
sub eax, dword [ebp - 0x28]
sar eax, 1
jns 0x54c042
adc eax, 0
mov dword [ebp - 0x2c], eax
jmp 0x54c068
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
fild dword [ebp + 8]
fmul qword [ebp - 0x18]
call fcn.00402cfc
mov dword [ebp - 0x24], eax
mov edi, dword [ebp + 0xc]
sub edi, dword [ebp - 0x24]
sar edi, 1
jns 0x54c068
adc edi, 0
fld qword [ebp - 0x18]
fcomp qword [ebp - 0x20]
fnstsw ax
sahf
seta al
test al, al
je 0x54c0c2
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
xor eax, eax
call fcn.00419cd8
lea eax, [ebp - 0x50]
push eax
push esi
call sub.user32.dll_FillRect
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x50]
push eax
mov edx, dword [ebp - 0x2c]
add edx, dword [ebp - 0x28]
mov ecx, dword [ebp + 0xc]
xor eax, eax
call fcn.00419cd8
lea eax, [ebp - 0x50]
push eax
push esi
call sub.user32.dll_FillRect
jmp 0x54c108
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x50]
push eax
mov ecx, edi
xor edx, edx
xor eax, eax
call fcn.00419cd8
lea eax, [ebp - 0x50]
push eax
push esi
call sub.user32.dll_FillRect
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x24]
add eax, edi
mov ecx, dword [ebp + 0xc]
xor edx, edx
call fcn.00419cd8
lea eax, [ebp - 0x50]
push eax
push esi
call sub.user32.dll_FillRect
push 0xcc0020
mov eax, dword [ebx + 0x314]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, dword [ebx + 0x314]
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
push 0
push 0
mov eax, dword [ebx + 0x314]
call fcn.0042c324
call fcn.00427ec4
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x2c]
push eax
push edi
push esi
call sub.gdi32.dll_StretchBlt
mov eax, dword [ebp - 0xc]
push eax
push esi
call sub.gdi32.dll_SetStretchBltMode
jmp case.default.0x54bdee
push 4
push esi
call sub.gdi32.dll_SetStretchBltMode
mov dword [ebp - 0xc], eax
push 0xcc0020
mov eax, dword [ebx + 0x314]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, dword [ebx + 0x314]
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
push 0
push 0
mov eax, dword [ebx + 0x314]
call fcn.0042c324
call fcn.00427ec4
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0
push esi
call sub.gdi32.dll_StretchBlt
jmp case.default.0x54bdee
mov eax, dword [ebx + 0x314]
mov edx, dword [eax]
call dword [edx + 0x2c]
dec eax
jl 0x54c289
mov eax, dword [ebx + 0x314]
mov edx, dword [eax]
call dword [edx + 0x20]
dec eax
jl 0x54c289
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
jge case.default.0x54bdee
xor edi, edi
cmp edi, dword [ebp - 4]
jge 0x54c237
push 0xcc0020
push 0
push 0
mov eax, dword [ebx + 0x314]
call fcn.0042c324
call fcn.00427ec4
push eax
mov eax, dword [ebx + 0x314]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, dword [ebx + 0x314]
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
mov eax, dword [ebp - 8]
push eax
push edi
push esi
call sub.gdi32.dll_BitBlt
mov eax, dword [ebx + 0x314]
mov edx, dword [eax]
call dword [edx + 0x2c]
add edi, eax
cmp edi, dword [ebp - 4]
jl 0x54c1e8
mov eax, dword [ebx + 0x314]
mov edx, dword [eax]
call dword [edx + 0x20]
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
jl 0x54c1e1
mov eax, dword [ebx + 0x314]
call fcn.0042c324
call fcn.00427d98
mov eax, dword [ebp - 0xc]
push eax
push esi
call sub.gdi32.dll_SetStretchBltMode
mov eax, dword [ebp - 0x34]
push eax
push esi
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 0x30]
push eax
call sub.gdi32.dll_DeleteObject
push esi
mov eax, dword [ebx + 0xc]
call fcn.0044c368
push eax
call sub.user32.dll_ReleaseDC
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc