Function at 0x4096e0
Capabilities:
Capture screenshot

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a3c7d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x98
mov eax, dword [0x5f1014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x98], edi
mov eax, dword [ebx + 8]
mov esi, dword [ebx + 0x18]
push 0
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x74], esi
call dword [sym.imp.USER32.dll_GetDC]
push dword [edi + 0x18]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], esi
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov esi, eax
lea eax, [ebp - 0x60]
push esi
push eax
push dword [ebp - 0x94]
call dword [sym.imp.USER32.dll_FillRect]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [edi + 0x54], 0
jne 0x409964
push dword [edi + 4]
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
call dword [sym.imp.USER32.dll_GetParent]
push 1
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x8c], eax
push ecx
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_MapWindowPoints]
push 2
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
mov dword [ebp - 0x90], esi
test esi, esi
je 0x409964
nop dword [eax + eax]
lea eax, [ebp - 0x70]
xorps xmm0, xmm0
push eax
push esi
movlpd qword [ebp - 0x80], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
push 1
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x8c]
push esi
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov edx, dword [ebp - 0x80]
mov eax, edx
sub eax, dword [ebp - 0x70]
add dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x7c]
mov eax, ecx
sub eax, dword [ebp - 0x6c]
add dword [ebp - 0x64], eax
push esi
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x6c], ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x409891
mov eax, dword [ebp - 0x88]
cmp dword [ebp - 0x80], eax
jg 0x409891
mov ecx, dword [ebp - 0x84]
cmp dword [ebp - 0x7c], ecx
jg 0x409891
add eax, dword [ebx + 0x14]
cmp dword [ebp - 0x68], eax
jl 0x409891
mov eax, dword [ebp - 0x74]
add eax, ecx
cmp dword [ebp - 0x64], eax
jl 0x409891
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
cmp ax, 0xb
jne 0x409891
push 0x20
lea eax, [ebp - 0x34]
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x24], xmm0
call dword [sym.imp.USER32.dll_GetClassNameA]
lea eax, [ebp - 0x34]
push str.Button
push eax
call fcn.005801b9
add esp, 8
test eax, eax
je 0x4098af
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
mov dword [ebp - 0x90], eax
test esi, esi
jne 0x4097e0
jmp 0x409964
test esi, esi
je 0x409964
mov edi, dword [ebp - 0xa4]
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [ebp - 0x64]
mov esi, eax
sub ecx, dword [ebp - 0x6c]
push ecx
mov ecx, dword [ebp - 0x68]
sub ecx, dword [ebp - 0x70]
push ecx
push edi
mov dword [ebp - 0x8c], esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push esi
mov dword [ebp - 0x9c], eax
call edi
push 0x16
push dword [ebp - 0x8c]
mov esi, eax
push 0x317
push dword [ebp - 0x90]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 0x84]
sub ecx, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x88]
sub eax, dword [ebp - 0x80]
push 0xcc0020
push ecx
push eax
push dword [ebp - 0x8c]
push dword [ebp - 0x74]
push dword [ebx + 0x14]
push 0
push 0
push dword [ebp - 0x94]
call dword [sym.imp.GDI32.dll_BitBlt]
push esi
mov esi, dword [ebp - 0x8c]
push esi
call edi
push dword [ebp - 0x9c]
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edi, dword [ebp - 0x98]
push dword [ebp - 0x94]
lea ecx, [ebp - 0x50]
call fcn.00402310
mov dword [ebp - 4], 0
mov eax, dword [ebx + 0x14]
mov ecx, dword [edi + 0x28c]
movd xmm0, eax
cdq
sub eax, edx
mov esi, eax
mov eax, dword [ebp - 0x74]
sar esi, 1
cmp ecx, esi
cdq
cvtdq2pd xmm0, xmm0
cmovle esi, ecx
sub eax, edx
mov ecx, dword [ebp - 0x98]
mov edi, eax
sar edi, 1
mov ecx, dword [ecx + 0x290]
cmp ecx, edi
movsd qword [ebp - 0x88], xmm0
cmovle edi, ecx
movd xmm1, esi
cvtdq2pd xmm1, xmm1
lea ecx, [ebp - 0x50]
movd xmm0, edi
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm1
ucomisd xmm0, qword [0x5e4e80]
lahf
test ah, 0x44
jp 0x4099fb
push 0
call fcn.00402700
push dword [ebp - 0x74]
lea ecx, [ebp - 0x50]
push dword [ebx + 0x14]
sub esp, 8
call fcn.00402640
jmp 0x409bee
push 1
call fcn.00402700
lea ecx, [ebp - 0x50]
call fcn.004024f0
movd xmm1, dword [ebp - 0x74]
lea ecx, [ebp - 0x50]
movsd xmm3, qword [ebp - 0x88]
cvtdq2pd xmm0, xmm1
movd xmm1, edi
cvtdq2pd xmm1, xmm1
subsd xmm0, xmm1
movd xmm1, esi
cvtdq2pd xmm1, xmm1
movaps xmm2, xmm0
movsd qword [ebp - 0x80], xmm0
subsd xmm3, xmm1
movaps xmm1, xmm3
movsd qword [ebp - 0x88], xmm3
call fcn.004027d0
movd xmm0, edi
lea ecx, [ebp - 0x50]
cvtdq2pd xmm2, xmm0
movd xmm0, esi
cvtdq2pd xmm1, xmm0
call fcn.004028c0
movsd xmm0, qword [0x5e4fc0]
lea ecx, [ebp - 0x50]
movsd xmm3, qword [0x5e4fa0]
sub esp, 0x10
xorps xmm2, xmm2
xorps xmm1, xmm1
movsd qword [esp + 8], xmm0
xorps xmm0, xmm0
movsd qword [esp], xmm0
call fcn.00402810
lea ecx, [ebp - 0x50]
call fcn.00402540
lea ecx, [ebp - 0x50]
call fcn.004024f0
movsd xmm2, qword [ebp - 0x80]
lea ecx, [ebp - 0x50]
movd xmm1, esi
cvtdq2pd xmm0, xmm1
addsd xmm0, qword [0x5e4e80]
movaps xmm1, xmm0
movsd qword [ebp - 0xa0], xmm0
call fcn.004027d0
movd xmm0, edi
lea ecx, [ebp - 0x50]
cvtdq2pd xmm2, xmm0
movd xmm0, esi
cvtdq2pd xmm1, xmm0
call fcn.004028c0
movaps xmm0, xmmword [0x5e5410]
lea ecx, [ebp - 0x50]
movsd xmm3, qword [0x5e4fa0]
sub esp, 0x10
xorps xmm2, xmm2
xorps xmm1, xmm1
movups xmmword [esp], xmm0
call fcn.00402810
lea ecx, [ebp - 0x50]
call fcn.00402540
lea ecx, [ebp - 0x50]
call fcn.004024f0
movd xmm1, edi
lea ecx, [ebp - 0x50]
cvtdq2pd xmm0, xmm1
movsd xmm1, qword [ebp - 0xa0]
addsd xmm0, qword [0x5e4e80]
movaps xmm2, xmm0
movsd qword [ebp - 0x80], xmm0
call fcn.004027d0
movd xmm0, edi
lea ecx, [ebp - 0x50]
cvtdq2pd xmm2, xmm0
movd xmm0, esi
cvtdq2pd xmm1, xmm0
call fcn.004028c0
movaps xmm0, xmmword [0x5e5420]
sub esp, 0x10
movsd xmm3, qword [0x5e4fa0]
lea ecx, [ebp - 0x50]
xorps xmm2, xmm2
xorps xmm1, xmm1
movups xmmword [esp], xmm0
call fcn.00402810
lea ecx, [ebp - 0x50]
call fcn.00402540
lea ecx, [ebp - 0x50]
call fcn.004024f0
movsd xmm2, qword [ebp - 0x80]
lea ecx, [ebp - 0x50]
movsd xmm1, qword [ebp - 0x88]
call fcn.004027d0
movd xmm0, edi
lea ecx, [ebp - 0x50]
cvtdq2pd xmm2, xmm0
movd xmm0, esi
cvtdq2pd xmm1, xmm0
call fcn.004028c0
movaps xmm0, xmmword [0x5e5440]
lea ecx, [ebp - 0x50]
movsd xmm3, qword [0x5e4fa0]
sub esp, 0x10
xorps xmm2, xmm2
xorps xmm1, xmm1
movups xmmword [esp], xmm0
call fcn.00402810
lea ecx, [ebp - 0x50]
call fcn.00402540
lea ecx, [ebp - 0x50]
call fcn.00402750
mov edi, dword [ebp - 0x98]
movsd xmm3, qword [0x5e5090]
mov eax, dword [edi + 0x294]
sub eax, 0
je 0x409dab
sub eax, 1
jne 0x409e21
mov esi, dword [ebx + 0xc]
push ecx
push esi
call fcn.0040a070
push ecx
push esi
mov dword [ebp - 0x9c], eax
call fcn.0040a0c0
movd xmm0, dword [ebp - 0x74]
sub esp, 8
cvtdq2pd xmm0, xmm0
mov dword [ebp - 0x90], eax
xorps xmm3, xmm3
xorps xmm2, xmm2
xorps xmm1, xmm1
movsd qword [esp], xmm0
call fcn.00402900
mov esi, eax
test esi, esi
je 0x409e19
mov edx, dword [ebp - 0x9c]
sub esp, 0x10
movss xmm1, dword [0x5e5138]
mov ecx, edx
shr ecx, 0x10
mov ax, dx
movzx ecx, cl
xorps xmm2, xmm2
shr ax, 8
movzx eax, ax
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
divss xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [esp + 8], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movzx eax, dl
divss xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
push esi
divss xmm0, xmm1
cvtps2pd xmm3, xmm0
call fcn.00402980
mov ecx, dword [ebp - 0x90]
sub esp, 0x10
movss xmm3, dword [0x5e5138]
mov eax, ecx
shr eax, 0x10
movzx eax, al
movd xmm0, eax
mov ax, cx
cvtdq2ps xmm0, xmm0
shr ax, 8
movzx eax, ax
divss xmm0, xmm3
cvtps2pd xmm2, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movzx eax, cl
movsd qword [esp + 8], xmm2
divss xmm0, xmm3
movsd qword [ebp - 0x88], xmm2
cvtps2pd xmm1, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movsd xmm2, qword [0x5e4f90]
divss xmm0, xmm3
movsd qword [esp], xmm1
cvtps2pd xmm0, xmm0
push esi
movsd qword [ebp - 0x80], xmm1
movaps xmm3, xmm0
movsd qword [ebp - 0xa0], xmm0
call fcn.00402980
movsd xmm0, qword [ebp - 0x88]
sub esp, 0x10
movsd xmm3, qword [ebp - 0xa0]
movsd xmm2, qword [0x5e4fa0]
movsd qword [esp + 8], xmm0
movsd xmm0, qword [ebp - 0x80]
movsd qword [esp], xmm0
push esi
call fcn.00402980
push esi
lea ecx, [ebp - 0x50]
call fcn.00402790
cmp dword [edi + 0x2a0], 0
jne 0x409d95
lea ecx, [ebp - 0x50]
call fcn.00402600
push esi
call fcn.00402930
jmp 0x409e19
cmp dword [edi + 0x28], 0xffffffff
je 0x409da3
lea ecx, [ebp - 0x50]
call fcn.00402580
push esi
call fcn.00402930
jmp 0x409e19
mov ecx, dword [ebx + 0xc]
mov eax, ecx
shr eax, 0x10
movzx eax, al
movd xmm2, eax
mov ax, cx
shr ax, 8
movzx eax, ax
cvtdq2pd xmm2, xmm2
movd xmm1, eax
movzx eax, cl
lea ecx, [ebp - 0x50]
cvtdq2pd xmm1, xmm1
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm2, xmm3
divsd xmm1, xmm3
divsd xmm0, xmm3
movaps xmm3, xmm2
movaps xmm2, xmm1
movaps xmm1, xmm0
call fcn.004026c0
cmp dword [edi + 0x2a0], 0
jne 0x409e0b
lea ecx, [ebp - 0x50]
call fcn.00402600
jmp 0x409e19
cmp dword [edi + 0x28], 0xffffffff
je 0x409e19
lea ecx, [ebp - 0x50]
call fcn.00402580
movsd xmm3, qword [0x5e5090]
cmp dword [edi + 0x4c], 0
je 0x409e37
mov eax, dword [edi + 0x2c]
mov ecx, eax
shr ecx, 0x10
movzx edx, ax
cmp eax, 0xffffffff
jne 0x409e47
mov eax, dword [edi + 0x28]
mov ecx, eax
shr ecx, 0x10
movzx edx, ax
cmp eax, 0xffffffff
je 0x409eac
movzx eax, cl
lea ecx, [ebp - 0x50]
movd xmm2, eax
mov ax, dx
shr ax, 8
movzx eax, ax
cvtdq2pd xmm2, xmm2
movd xmm1, eax
movzx eax, dl
cvtdq2pd xmm1, xmm1
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm1, xmm3
divsd xmm2, xmm3
divsd xmm0, xmm3
movaps xmm3, xmm2
movaps xmm2, xmm1
movaps xmm1, xmm0
call fcn.004026c0
movsd xmm1, qword [0x5e4f80]
lea ecx, [ebp - 0x50]
call fcn.00402680
lea ecx, [ebp - 0x50]
call fcn.004025c0
lea ecx, [ebp - 0x50]
call fcn.00402580
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00402390
push dword [ebp - 0xa4]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004e389c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x14