Function at 0x451200
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
cmp byte [ebp + 0x24], 0
push ebx
push esi
mov esi, dword [ebp + 0x20]
push edi
mov edi, ecx
mov dword [esp + 0x70], edi
jne 0x451233
mov edx, str.Fast
mov ecx, esi
call fcn.0049bfa0
mov byte [esp + 0xc], 0
test eax, eax
je 0x451238
mov byte [esp + 0xc], 1
mov edx, 0x4f8ae0
mov ecx, esi
call fcn.0049bfa0
mov ebx, dword [ebp + 0x18]
mov edx, eax
test edx, edx
movzx esi, bl
movzx ecx, bx
mov eax, ebx
setne byte [esp + 0xf]
shl esi, 8
shr ecx, 8
or esi, ecx
shr eax, 0x10
shl esi, 8
movzx eax, al
or esi, eax
test edx, edx
je 0x45127a
mov dword [esp + 0x20], ebx
mov ebx, esi
mov dword [ebp + 0x18], ebx
jmp 0x45127e
mov dword [esp + 0x20], esi
cmp byte [ebp + 0x24], 0
mov eax, dword [0x5092c8]
mov dword [esp + 0x60], eax
je 0x451291
xor ebx, ebx
jmp 0x45129e
mov cl, 1
cmp cl, byte [edi + 1]
sbb ebx, ebx
and ebx, dword [0x5092cc]
mov dword [esp + 0x64], ebx
test eax, eax
je 0x4512b5
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, eax
call fcn.0049fde0
test ebx, ebx
je 0x4512c8
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, ebx
call fcn.0049fde0
xorps xmm0, xmm0
lea edx, [esp + 0x48]
push 0
lea ecx, [esp + 0x48]
movlpd qword [esp + 0x48], xmm0
call fcn.0049cfc0
mov ebx, dword [ebp + 8]
add esp, 4
mov edx, dword [esp + 0x44]
add ebx, edx
add edx, dword [ebp + 0x10]
mov esi, ebx
mov ecx, dword [ebp + 0xc]
mov eax, edx
add ecx, dword [esp + 0x48]
mov edi, dword [ebp + 0x14]
add edi, dword [esp + 0x48]
cmp ebx, edx
mov dword [esp + 0x38], ebx
cmovle eax, ebx
mov dword [esp + 0x28], ecx
cmovle esi, edx
mov dword [esp + 0x58], eax
cmp ecx, edi
mov dword [esp + 0x40], edx
mov ebx, ecx
mov eax, edi
cmovle eax, ecx
cmovle ebx, edi
xor ecx, ecx
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
cmovns ecx, eax
mov dword [esp + 0x10], ecx
cmp ecx, 0xff
jle 0x451349
mov dword [esp + 0x10], 0xff
jmp 0x45134d
test ecx, ecx
jle 0x451364
mov ecx, dword [ebp + 0x18]
mov eax, ecx
shr eax, 8
mov dword [esp + 0x14], eax
mov eax, ecx
mov byte [esp + 0xd], cl
shr eax, 0x10
jmp 0x451378
mov al, byte [esp + 0xc]
mov byte [esp + 0xd], al
mov al, byte [esp + 0xc]
mov dword [esp + 0x14], eax
mov al, byte [esp + 0xc]
push 0
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_GetDC]
mov edx, eax
mov dword [esp + 0x2c], edx
test edx, edx
je 0x451aad
cmp byte [esp + 0xc], 0
mov byte [esp + 0xe], 0
je 0x451849
sub esi, dword [esp + 0x58]
xor ecx, ecx
sub ebx, dword [esp + 0x5c]
inc esi
push edx
mov dword [esp + 0x58], ecx
inc ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x70], ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esp + 0x50], eax
test eax, eax
je 0x451778
push ebx
push esi
push dword [esp + 0x34]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x54], eax
test eax, eax
je 0x451778
push eax
push dword [esp + 0x54]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x6c], eax
test eax, eax
je 0x451778
push 0xcc0020
push dword [esp + 0x60]
push dword [esp + 0x60]
push dword [esp + 0x38]
push ebx
mov ebx, dword [esp + 0x64]
push esi
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
je 0x451778
mov ecx, dword [esp + 0x54]
lea eax, [esp + 0xc]
push 8
push eax
lea eax, [esp + 0x38]
mov edx, ebx
push eax
lea eax, [esp + 0x40]
push eax
call fcn.00450ff0
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x451778
mov ebx, dword [esp + 0x34]
mov edx, ebx
imul edx, dword [esp + 0x30]
mov al, byte [esp + 0xc]
mov dword [esp + 0x4c], edx
test al, al
je 0x4514fe
xor esi, esi
test edx, edx
jle 0x451502
cmp edx, 0x10
jb 0x4514e3
mov eax, edx
and eax, reloc.WSOCK32.dll_ntohs
jns 0x45148b
dec eax
or eax, 0xfffffff0
inc eax
movaps xmm2, xmmword [0x4fd6a0]
mov ecx, edx
sub ecx, eax
mov eax, dword [esp + 0x1c]
add eax, 0x20
nop dword [eax]
movups xmm0, xmmword [eax - 0x20]
add esi, 0x10
movaps xmm1, xmm2
pand xmm0, xmm2
movups xmmword [eax - 0x20], xmm0
movups xmm0, xmmword [eax - 0x10]
pand xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
movups xmm0, xmmword [eax]
pand xmm0, xmm2
movups xmmword [eax], xmm0
movups xmm0, xmmword [eax + 0x10]
pand xmm0, xmm2
movups xmmword [eax + 0x10], xmm0
add eax, 0x40
cmp esi, ecx
jl 0x4514a0
mov al, byte [esp + 0xc]
mov ecx, dword [esp + 0x1c]
cmp esi, edx
jge 0x451502
nop word [eax + eax]
and dword [ecx + esi*4], 0xf8f8f8f8
inc esi
cmp esi, edx
jl 0x4514f0
jmp 0x451502
mov esi, dword [esp + 0x3c]
cmp byte [ebp + 0x24], 0
je 0x451561
mov edx, dword [ecx]
and edx, 0xffffff
cmp byte [esp + 0xf], 0
jne 0x45152d
movzx ecx, dx
movzx eax, dl
shr ecx, 8
shl eax, 8
or ecx, eax
shr edx, 0x10
shl ecx, 8
or edx, ecx
push edx
lea eax, [esp + 0x7c]
push str.0x_06X
push eax
call fcn.00405dc0
mov ecx, dword [esp + 0x6c]
lea eax, [esp + 0x84]
add esp, 0xc
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.0049fde0
mov byte [esp + 0xe], 1
jmp 0x451780
cmp dword [esp + 0x10], 1
jge 0x4515fe
test al, al
je 0x451578
and dword [esp + 0x20], 0xf8f8f8f8
xor ecx, ecx
test edx, edx
jle 0x451780
dec edx
mov dword [esp + 0x14], edx
nop word [eax + eax]
mov eax, dword [esp + 0x38]
cmp eax, dword [esp + 0x40]
jle 0x4515b8
cmp dword [esp + 0x28], edi
jle 0x4515a4
mov esi, edx
jmp 0x4515d7
mov eax, ecx
cdq
idiv ebx
lea esi, [eax + 1]
imul esi, ebx
sub esi, edx
mov edx, dword [esp + 0x14]
dec esi
jmp 0x4515d7
cmp dword [esp + 0x28], edi
jle 0x4515d5
mov eax, edx
cdq
idiv ebx
mov esi, eax
mov eax, ecx
cdq
idiv ebx
imul esi, ebx
add esi, edx
mov edx, dword [esp + 0x14]
jmp 0x4515d7
mov esi, ecx
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + esi*4]
and eax, 0xffffff
cmp eax, dword [esp + 0x20]
je 0x451557
inc ecx
dec edx
mov dword [esp + 0x14], edx
cmp ecx, dword [esp + 0x4c]
jl 0x451590
jmp 0x451780
mov edx, dword [esp + 0x14]
test al, al
mov al, byte [esp + 0xd]
je 0x45161c
and al, 0xf8
and edx, 0xfffffff8
and dword [esp + 0x24], 0xfffffff8
mov byte [esp + 0xd], al
mov dword [esp + 0x14], edx
movzx ecx, al
xor ebx, ebx
sub al, byte [esp + 0x10]
cmp dword [esp + 0x10], ecx
movzx eax, al
cmovle ebx, eax
mov dword [esp + 0x20], 0
movzx eax, dl
mov dword [esp + 0x30], eax
mov al, dl
xor edx, edx
mov dword [esp + 0x68], ebx
mov ebx, dword [esp + 0x10]
sub al, bl
cmp ebx, dword [esp + 0x30]
movzx eax, al
cmovle edx, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x3c], edx
movzx edx, al
sub al, bl
cmp ebx, edx
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x20]
movzx eax, al
cmovle edx, eax
mov dword [esp + 0x20], edx
mov edx, 0xff
mov eax, edx
sub eax, ecx
cmp ebx, eax
jle 0x45168a
mov byte [esp + 0xc], dl
jmp 0x451694
mov cl, bl
add cl, byte [esp + 0xd]
mov byte [esp + 0xc], cl
mov eax, edx
sub eax, dword [esp + 0x30]
cmp ebx, eax
jle 0x4516a4
mov byte [esp + 0xf], dl
jmp 0x4516b0
mov eax, dword [esp + 0x14]
mov cl, bl
add cl, al
mov byte [esp + 0xf], cl
sub edx, dword [esp + 0x74]
cmp ebx, edx
jle 0x4516bf
mov byte [esp + 0x10], 0xff
jmp 0x4516c9
mov ecx, dword [esp + 0x24]
add bl, cl
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x4c]
xor ecx, ecx
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x30], ecx
test eax, eax
jle 0x451780
dec eax
mov dword [esp + 0x34], eax
mov edx, dword [esp + 0x38]
cmp edx, dword [esp + 0x40]
jle 0x451708
cmp dword [esp + 0x28], edi
jle 0x4516f8
mov esi, eax
jmp 0x451721
mov eax, ecx
cdq
idiv ebx
lea esi, [eax + 1]
imul esi, ebx
sub esi, edx
dec esi
jmp 0x451721
cmp dword [esp + 0x28], edi
jle 0x45171f
cdq
idiv ebx
mov esi, eax
mov eax, ecx
cdq
idiv ebx
imul esi, ebx
add esi, edx
jmp 0x451721
mov esi, ecx
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + esi*4]
mov ecx, edx
mov eax, edx
shr ecx, 0x10
shr eax, 8
cmp cl, byte [esp + 0x68]
jb 0x45175a
cmp cl, byte [esp + 0xc]
ja 0x45175a
cmp al, byte [esp + 0x3c]
jb 0x45175a
cmp al, byte [esp + 0xf]
ja 0x45175a
cmp dl, byte [esp + 0x20]
jb 0x45175a
cmp dl, byte [esp + 0x10]
jbe 0x451557
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
inc ecx
dec eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
cmp ecx, dword [esp + 0x4c]
jl 0x4516e4
jmp 0x451780
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x3c]
push dword [esp + 0x2c]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edi, dword [esp + 0x50]
test edi, edi
je 0x4517ab
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x4517a4
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x54]
test eax, eax
je 0x4517ba
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x451aad
push eax
call fcn.004bb7ab
add esp, 4
cmp byte [ebp + 0x24], 0
jne 0x45181c
cmp byte [esp + 0xe], 0
je 0x45181c
mov ecx, dword [esp + 0x60]
test ecx, ecx
je 0x4517fd
mov eax, esi
cdq
idiv ebx
push 0x18
sub edx, dword [esp + 0x48]
add edx, dword [esp + 0x5c]
mov eax, edx
cdq
push edx
push eax
call fcn.004014e0
mov ecx, dword [esp + 0x64]
test ecx, ecx
je 0x45181c
mov eax, esi
cdq
idiv ebx
push 0x18
sub eax, dword [esp + 0x4c]
add eax, dword [esp + 0x60]
cdq
push edx
push eax
call fcn.004014e0
cmp byte [esp + 0xe], 0
mov ecx, 0x4f07d4
push 1
push 0
mov eax, 0x4da494
cmove eax, ecx
mov ecx, dword [0x507a8c]
push 0xffffffffffffffff
push eax
call fcn.0049fde0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x45192f
mov cl, byte [esp + 0xd]
movzx esi, cl
cmp eax, esi
jle 0x451867
mov byte [esp + 0xd], 0
jmp 0x45186f
mov ch, cl
sub ch, al
mov byte [esp + 0xd], ch
mov ebx, dword [esp + 0x14]
mov al, bl
sub al, byte [esp + 0x10]
movzx edx, bl
cmp dword [esp + 0x10], edx
mov dword [esp + 0x3c], edx
movzx eax, al
mov dword [esp + 0x14], 0
mov edx, dword [esp + 0x14]
cmovle edx, eax
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], edx
movzx edx, al
sub al, byte [esp + 0x10]
cmp dword [esp + 0x10], edx
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x1c]
movzx eax, al
cmovle edx, eax
mov dword [esp + 0x1c], edx
mov edx, 0xff
mov eax, edx
sub eax, esi
cmp dword [esp + 0x10], eax
jle 0x4518d8
mov byte [esp + 0x1b], dl
jmp 0x4518e2
mov ch, byte [esp + 0x10]
add ch, cl
mov byte [esp + 0x1b], ch
mov eax, edx
sub eax, dword [esp + 0x3c]
cmp dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
jle 0x4518f8
mov byte [esp + 0xf], dl
jmp 0x451900
mov cl, al
add cl, bl
mov byte [esp + 0xf], cl
sub edx, dword [esp + 0x68]
cmp eax, edx
mov edx, dword [esp + 0x2c]
jle 0x451913
mov byte [esp + 0xc], 0xff
jmp 0x45195f
mov ecx, dword [esp + 0x24]
add al, cl
mov ecx, dword [esp + 0x14]
mov byte [esp + 0xc], al
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], eax
jmp 0x45195f
mov al, byte [esp + 0xc]
mov byte [esp + 0xd], al
mov al, byte [esp + 0xc]
mov dword [esp + 0x14], eax
mov al, byte [esp + 0xc]
mov dword [esp + 0x1c], eax
mov al, byte [esp + 0xc]
mov byte [esp + 0x1b], al
mov al, byte [esp + 0xc]
mov byte [esp + 0xf], al
mov al, byte [esp + 0xc]
mov byte [esp + 0xc], al
mov eax, dword [esp + 0x38]
mov ebx, eax
mov esi, dword [esp + 0x70]
mov ecx, dword [esp + 0x40]
nop dword [eax]
cmp eax, ecx
jle 0x45197d
xor eax, eax
cmp ebx, ecx
setge al
jmp 0x451984
xor eax, eax
cmp ebx, ecx
setle al
test eax, eax
je 0x4519c6
mov eax, dword [esp + 0x28]
mov esi, eax
nop
cmp eax, edi
jle 0x45199d
xor eax, eax
cmp esi, edi
setge al
jmp 0x4519a4
xor eax, eax
cmp esi, edi
setle al
test eax, eax
je 0x451a44
push esi
push ebx
push edx
call dword [sym.imp.GDI32.dll_GetPixel]
cmp dword [esp + 0x10], 1
jge 0x4519fc
cmp eax, dword [ebp + 0x18]
jne 0x451a2a
mov byte [esp + 0xe], 1
push dword [esp + 0x2c]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp byte [esp + 0xe], 0
jne 0x451a5e
mov ecx, dword [0x507a8c]
push 1
push 0
push 0xffffffffffffffff
push 0x4f07d4
call fcn.0049fde0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov ecx, eax
mov edx, eax
shr ecx, 8
shr edx, 0x10
cmp al, byte [esp + 0xd]
jb 0x451a2a
cmp al, byte [esp + 0x1b]
ja 0x451a2a
cmp cl, byte [esp + 0x14]
jb 0x451a2a
cmp cl, byte [esp + 0xf]
ja 0x451a2a
cmp dl, byte [esp + 0x1c]
jb 0x451a2a
cmp dl, byte [esp + 0xc]
jbe 0x4519c1
mov edx, dword [esp + 0x2c]
xor eax, eax
cmp dword [esp + 0x28], edi
setle al
lea esi, [esi + eax*2]
mov eax, dword [esp + 0x28]
dec esi
jmp 0x451990
mov ecx, dword [esp + 0x40]
xor eax, eax
cmp dword [esp + 0x38], ecx
setle al
lea ebx, [ebx + eax*2]
mov eax, dword [esp + 0x38]
dec ebx
jmp 0x451970
mov ecx, dword [esp + 0x60]
test ecx, ecx
je 0x451a76
sub ebx, dword [esp + 0x44]
push 0x18
mov eax, ebx
cdq
push edx
push eax
call fcn.004014e0
mov ecx, dword [esp + 0x64]
test ecx, ecx
je 0x451a8e
sub esi, dword [esp + 0x48]
push 0x18
mov eax, esi
cdq
push edx
push eax
call fcn.004014e0
mov ecx, dword [0x507a8c]
push 1
push 0
push 0xffffffffffffffff
push 0x4da494
call fcn.0049fde0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
cmp byte [ebp + 0x24], 0
mov ecx, 0x4f07d4
mov eax, 0x4f0d0c
cmove ecx, eax
cmp word [ecx], 0x30
jne 0x451acb
cmp word [ecx + 2], 0
je 0x451ad9
mov eax, dword [0x50499c]
test byte [eax + 0x100], 1
jne 0x451af4
push 1
push 0
push 0xffffffffffffffff
push ecx
mov ecx, dword [0x507a8c]
call fcn.0049fde0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
push 0x4da3cc
push 0
push ecx
mov ecx, dword [esp + 0x7c]
call fcn.004472d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20