Function at 0x451780
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 0x4517b3
mov edx, str.Fast
mov ecx, esi
call fcn.0049ca40
mov byte [esp + 0xc], 0
test eax, eax
je 0x4517b8
mov byte [esp + 0xc], 1
mov edx, 0x4d852c
mov ecx, esi
call fcn.0049ca40
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 0x4517fa
mov dword [esp + 0x20], ebx
mov ebx, esi
mov dword [ebp + 0x18], ebx
jmp 0x4517fe
mov dword [esp + 0x20], esi
cmp byte [ebp + 0x24], 0
mov eax, dword [0x4e7210]
mov dword [esp + 0x60], eax
je 0x451811
xor ebx, ebx
jmp 0x45181e
mov cl, 1
cmp cl, byte [edi + 1]
sbb ebx, ebx
and ebx, dword [0x4e7214]
mov dword [esp + 0x64], ebx
test eax, eax
je 0x451835
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, eax
call fcn.004a0a20
test ebx, ebx
je 0x451848
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, ebx
call fcn.004a0a20
xorps xmm0, xmm0
lea edx, [esp + 0x48]
push 0
lea ecx, [esp + 0x48]
movlpd qword [esp + 0x48], xmm0
call fcn.0049da70
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 0x4518c9
mov dword [esp + 0x10], 0xff
jmp 0x4518cd
test ecx, ecx
jle 0x4518e4
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 0x4518f8
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 0x45202d
cmp byte [esp + 0xc], 0
mov byte [esp + 0xe], 0
je 0x451dca
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 0x451cf8
push ebx
push esi
push dword [esp + 0x34]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x54], eax
test eax, eax
je 0x451cf8
push eax
push dword [esp + 0x54]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x6c], eax
test eax, eax
je 0x451cf8
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 0x451cf8
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.00451570
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x451cf8
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 0x451a7e
xor esi, esi
test edx, edx
jle 0x451a82
cmp edx, 0x10
jb 0x451a63
mov eax, edx
and eax, reloc.WSOCK32.dll_ntohs
jns 0x451a0b
dec eax
or eax, 0xfffffff0
inc eax
movaps xmm2, xmmword [0x4dd130]
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 0x451a20
mov al, byte [esp + 0xc]
mov ecx, dword [esp + 0x1c]
cmp esi, edx
jge 0x451a82
nop word [eax + eax]
and dword [ecx + esi*4], 0xf8f8f8f8
inc esi
cmp esi, edx
jl 0x451a70
jmp 0x451a82
mov esi, dword [esp + 0x3c]
cmp byte [ebp + 0x24], 0
je 0x451ae1
mov edx, dword [ecx]
and edx, 0xffffff
cmp byte [esp + 0xf], 0
jne 0x451aad
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.00405e50
mov ecx, dword [esp + 0x6c]
lea eax, [esp + 0x84]
add esp, 0xc
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.004a0a20
mov byte [esp + 0xe], 1
jmp 0x451d00
cmp dword [esp + 0x10], 1
jge 0x451b7e
test al, al
je 0x451af8
and dword [esp + 0x20], 0xf8f8f8f8
xor ecx, ecx
test edx, edx
jle 0x451d00
dec edx
mov dword [esp + 0x14], edx
nop word [eax + eax]
mov eax, dword [esp + 0x38]
cmp eax, dword [esp + 0x40]
jle 0x451b38
cmp dword [esp + 0x28], edi
jle 0x451b24
mov esi, edx
jmp 0x451b57
mov eax, ecx
cdq
idiv ebx
lea esi, [eax + 1]
imul esi, ebx
sub esi, edx
mov edx, dword [esp + 0x14]
dec esi
jmp 0x451b57
cmp dword [esp + 0x28], edi
jle 0x451b55
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 0x451b57
mov esi, ecx
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + esi*4]
and eax, 0xffffff
cmp eax, dword [esp + 0x20]
je 0x451ad7
inc ecx
dec edx
mov dword [esp + 0x14], edx
cmp ecx, dword [esp + 0x4c]
jl 0x451b10
jmp 0x451d00
mov edx, dword [esp + 0x14]
test al, al
mov al, byte [esp + 0xd]
je 0x451b9c
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 0x451c0a
mov byte [esp + 0xc], dl
jmp 0x451c14
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 0x451c24
mov byte [esp + 0xf], dl
jmp 0x451c30
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 0x451c3f
mov byte [esp + 0x10], 0xff
jmp 0x451c49
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 0x451d00
dec eax
mov dword [esp + 0x34], eax
mov edx, dword [esp + 0x38]
cmp edx, dword [esp + 0x40]
jle 0x451c88
cmp dword [esp + 0x28], edi
jle 0x451c78
mov esi, eax
jmp 0x451ca1
mov eax, ecx
cdq
idiv ebx
lea esi, [eax + 1]
imul esi, ebx
sub esi, edx
dec esi
jmp 0x451ca1
cmp dword [esp + 0x28], edi
jle 0x451c9f
cdq
idiv ebx
mov esi, eax
mov eax, ecx
cdq
idiv ebx
imul esi, ebx
add esi, edx
jmp 0x451ca1
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 0x451cda
cmp cl, byte [esp + 0xc]
ja 0x451cda
cmp al, byte [esp + 0x3c]
jb 0x451cda
cmp al, byte [esp + 0xf]
ja 0x451cda
cmp dl, byte [esp + 0x20]
jb 0x451cda
cmp dl, byte [esp + 0x10]
jbe 0x451ad7
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 0x451c64
jmp 0x451d00
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 0x451d2b
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x451d24
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 0x451d3a
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x45202d
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
cmp byte [ebp + 0x24], 0
jne 0x451d9d
cmp byte [esp + 0xe], 0
je 0x451d9d
mov ecx, dword [esp + 0x60]
test ecx, ecx
je 0x451d7e
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 0x451d9d
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, 0x4d00fc
push 1
push 0
mov eax, 0x4b9d08
cmove eax, ecx
mov ecx, dword [0x4e59cc]
push 0xffffffffffffffff
push eax
call fcn.004a0a20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x451eb0
mov cl, byte [esp + 0xd]
movzx esi, cl
cmp eax, esi
jle 0x451de8
mov byte [esp + 0xd], 0
jmp 0x451df0
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 0x451e59
mov byte [esp + 0x1b], dl
jmp 0x451e63
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 0x451e79
mov byte [esp + 0xf], dl
jmp 0x451e81
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 0x451e94
mov byte [esp + 0xc], 0xff
jmp 0x451ee0
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 0x451ee0
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
cmp eax, ecx
jle 0x451efd
xor eax, eax
cmp ebx, ecx
setge al
jmp 0x451f04
xor eax, eax
cmp ebx, ecx
setle al
test eax, eax
je 0x451f46
mov eax, dword [esp + 0x28]
mov esi, eax
nop
cmp eax, edi
jle 0x451f1d
xor eax, eax
cmp esi, edi
setge al
jmp 0x451f24
xor eax, eax
cmp esi, edi
setle al
test eax, eax
je 0x451fc4
push esi
push ebx
push edx
call dword [sym.imp.GDI32.dll_GetPixel]
cmp dword [esp + 0x10], 1
jge 0x451f7c
cmp eax, dword [ebp + 0x18]
jne 0x451faa
mov byte [esp + 0xe], 1
push dword [esp + 0x2c]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp byte [esp + 0xe], 0
jne 0x451fde
mov ecx, dword [0x4e59cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4d00fc
call fcn.004a0a20
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 0x451faa
cmp al, byte [esp + 0x1b]
ja 0x451faa
cmp cl, byte [esp + 0x14]
jb 0x451faa
cmp cl, byte [esp + 0xf]
ja 0x451faa
cmp dl, byte [esp + 0x1c]
jb 0x451faa
cmp dl, byte [esp + 0xc]
jbe 0x451f41
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 0x451f10
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 0x451ef0
mov ecx, dword [esp + 0x60]
test ecx, ecx
je 0x451ff6
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 0x45200e
sub esi, dword [esp + 0x48]
push 0x18
mov eax, esi
cdq
push edx
push eax
call fcn.004014e0
mov ecx, dword [0x4e59cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4b9d08
call fcn.004a0a20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
cmp byte [ebp + 0x24], 0
mov ecx, 0x4d00fc
mov eax, 0x4d0634
cmove ecx, eax
cmp word [ecx], 0x30
jne 0x45204b
cmp word [ecx + 2], 0
je 0x452059
mov eax, dword [0x4e30f4]
test byte [eax + 0x100], 1
jne 0x452074
push 1
push 0
push 0xffffffffffffffff
push ecx
mov ecx, dword [0x4e59cc]
call fcn.004a0a20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
push 0x4b9c40
push 0
push ecx
mov ecx, dword [esp + 0x7c]
call fcn.00447670
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20