Function at 0x458bd0
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 + 0x74], edi
jne 0x458c03
mov edx, str.Fast
mov ecx, esi
call fcn.004b1850
mov byte [esp + 0x12], 0
test eax, eax
je 0x458c08
mov byte [esp + 0x12], 1
mov edx, 0x4ee57c
mov ecx, esi
call fcn.004b1850
mov ebx, dword [ebp + 0x18]
mov edx, eax
test edx, edx
movzx esi, bx
movzx ecx, bl
mov eax, ebx
setne byte [esp + 0x10]
shr esi, 8
shl ecx, 8
or esi, ecx
shr eax, 0x10
shl esi, 8
movzx eax, al
or esi, eax
test edx, edx
je 0x458c4a
mov dword [esp + 0x34], ebx
mov ebx, esi
mov dword [ebp + 0x18], ebx
jmp 0x458c4e
mov dword [esp + 0x34], esi
cmp byte [ebp + 0x24], 0
mov eax, dword [0x4fd218]
mov dword [esp + 0x30], eax
je 0x458c61
xor ebx, ebx
jmp 0x458c6e
mov cl, 1
cmp cl, byte [edi + 1]
sbb ebx, ebx
and ebx, dword [0x4fd21c]
mov dword [esp + 0x6c], ebx
test eax, eax
je 0x458c85
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, eax
call fcn.004b5b70
test ebx, ebx
je 0x458c98
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, ebx
call fcn.004b5b70
xorps xmm0, xmm0
lea edx, [esp + 0x58]
push 0
lea ecx, [esp + 0x58]
movlpd qword [esp + 0x58], xmm0
call fcn.004b28e0
mov ebx, dword [ebp + 8]
add esp, 4
mov edx, dword [esp + 0x54]
add ebx, edx
add edx, dword [ebp + 0x10]
mov esi, ebx
mov ecx, dword [ebp + 0xc]
mov eax, edx
add ecx, dword [esp + 0x58]
mov edi, dword [ebp + 0x14]
add edi, dword [esp + 0x58]
cmp ebx, edx
mov dword [esp + 0x48], ebx
cmovle eax, ebx
mov dword [esp + 0x3c], ecx
cmovle esi, edx
mov dword [esp + 0x64], eax
cmp ecx, edi
mov dword [esp + 0x50], edx
mov ebx, ecx
mov eax, edi
cmovle eax, ecx
cmovle ebx, edi
xor ecx, ecx
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
cmovns ecx, eax
mov dword [esp + 0x20], ecx
cmp ecx, 0xff
jle 0x458d21
mov dword [esp + 0x20], 0xff
mov dword [esp + 0x14], 0xff
jmp 0x458d29
mov dword [esp + 0x14], ecx
test ecx, ecx
jle 0x458d40
mov ecx, dword [ebp + 0x18]
mov eax, ecx
shr eax, 8
mov dword [esp + 0x18], eax
mov eax, ecx
mov byte [esp + 0x11], cl
shr eax, 0x10
jmp 0x458d54
mov al, byte [esp + 0x10]
mov byte [esp + 0x11], al
mov al, byte [esp + 0x10]
mov dword [esp + 0x18], eax
mov al, byte [esp + 0x10]
push 0
mov dword [esp + 0x3c], eax
call dword [sym.imp.USER32.dll_GetDC]
mov edx, eax
mov dword [esp + 0x24], edx
test edx, edx
je 0x459563
cmp byte [esp + 0x12], 0
mov byte [esp + 0x13], 0
je 0x4592fb
sub esi, dword [esp + 0x64]
xor ecx, ecx
sub ebx, dword [esp + 0x68]
xor eax, eax
push edx
mov dword [esp + 0x48], ecx
inc esi
mov dword [esp + 0x30], ecx
inc ebx
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esp + 0x40], eax
test eax, eax
je 0x4591ec
push ebx
push esi
push dword [esp + 0x2c]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x44], eax
test eax, eax
je 0x4591ec
push eax
push dword [esp + 0x44]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4591ec
push 0xcc0020
push dword [esp + 0x6c]
push dword [esp + 0x6c]
push dword [esp + 0x30]
push ebx
mov ebx, dword [esp + 0x54]
push esi
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
je 0x4591ec
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x12]
push 8
push eax
lea eax, [esp + 0x30]
mov edx, ebx
push eax
lea eax, [esp + 0x6c]
push eax
call fcn.004589d0
add esp, 0x10
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4591ec
mov ebx, dword [esp + 0x60]
mov edx, ebx
imul edx, dword [esp + 0x28]
cmp byte [esp + 0x12], 0
mov dword [esp + 0x5c], edx
je 0x458ed3
xor esi, esi
test edx, edx
jle 0x458ed7
cmp edx, 0x10
jb 0x458ec5
mov eax, edx
and eax, reloc.WSOCK32.dll_ntohs
jns 0x458e66
dec eax
or eax, 0xfffffff0
inc eax
movaps xmm2, xmmword [0x4f32e0]
mov ecx, edx
sub ecx, eax
mov eax, dword [esp + 0x2c]
add eax, 0x20
nop dword [eax + eax]
movups xmm0, xmmword [eax - 0x20]
lea eax, [eax + 0x40]
add esi, 0x10
movaps xmm1, xmm2
pand xmm0, xmm2
movups xmmword [eax - 0x60], xmm0
movups xmm0, xmmword [eax - 0x50]
pand xmm0, xmm2
movups xmmword [eax - 0x50], xmm0
movups xmm0, xmmword [eax - 0x40]
pand xmm0, xmm2
movups xmmword [eax - 0x40], xmm0
movups xmm0, xmmword [eax - 0x30]
pand xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
cmp esi, ecx
jl 0x458e80
mov eax, dword [esp + 0x2c]
cmp esi, edx
jge 0x458ed7
and dword [eax + esi*4], 0xf8f8f8f8
inc esi
cmp esi, edx
jl 0x458ec5
jmp 0x458ed7
mov esi, dword [esp + 0x28]
cmp byte [ebp + 0x24], 0
je 0x458f61
mov edx, dword [eax]
and edx, 0xffffff
cmp byte [esp + 0x10], 0
jne 0x458f06
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.00406890
mov edi, dword [esp + 0x3c]
lea eax, [esp + 0x84]
add esp, 0xc
mov ecx, edi
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.004b5b70
push dword [esp + 0x24]
mov byte [esp + 0x17], 1
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x1c]
push eax
push dword [esp + 0x44]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esp + 0x40]
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x45925e
cmp dword [esp + 0x20], 1
jge 0x45905b
cmp byte [esp + 0x12], 0
je 0x458f7b
and dword [esp + 0x34], 0xf8f8f8f8
xor ecx, ecx
test edx, edx
jle 0x45902d
dec edx
mov dword [esp + 0x18], edx
nop word [eax + eax]
mov eax, dword [esp + 0x48]
cmp eax, dword [esp + 0x50]
jle 0x458fbd
cmp dword [esp + 0x3c], edi
jle 0x458fa4
mov esi, edx
jmp 0x458fdc
mov eax, ecx
cdq
idiv ebx
lea esi, [eax + 1]
mov eax, ecx
cdq
idiv ebx
imul esi, ebx
sub esi, edx
mov edx, dword [esp + 0x18]
dec esi
jmp 0x458fdc
cmp dword [esp + 0x3c], edi
jle 0x458fda
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 + 0x18]
jmp 0x458fdc
mov esi, ecx
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + esi*4]
and eax, 0xffffff
cmp eax, dword [esp + 0x34]
je 0x459028
inc ecx
dec edx
mov dword [esp + 0x18], edx
cmp ecx, dword [esp + 0x5c]
jl 0x458f90
push dword [esp + 0x24]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x30]
push eax
push dword [esp + 0x44]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esp + 0x40]
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x45925e
mov byte [esp + 0x13], 1
push dword [esp + 0x24]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x30]
push eax
push dword [esp + 0x44]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esp + 0x40]
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x45925e
cmp byte [esp + 0x12], 0
mov al, byte [esp + 0x11]
mov ecx, dword [esp + 0x18]
je 0x45907c
and al, 0xf8
and ecx, 0xfffffff8
and byte [esp + 0x38], 0xf8
mov byte [esp + 0x11], al
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x20]
movzx ebx, al
cmp edx, ebx
jle 0x45908e
mov byte [esp + 0x12], 0
jmp 0x4590a0
sub al, dl
mov edx, dword [esp + 0x20]
mov byte [esp + 0x12], al
mov al, byte [esp + 0x20]
mov dword [esp + 0x14], eax
movzx eax, cl
mov dword [esp + 0x28], eax
mov al, cl
sub al, byte [esp + 0x14]
xor ecx, ecx
cmp edx, dword [esp + 0x28]
movzx eax, al
cmovle ecx, eax
mov dword [esp + 0x34], 0
mov eax, dword [esp + 0x38]
mov dword [esp + 0x4c], ecx
movzx ecx, al
sub al, byte [esp + 0x14]
cmp edx, ecx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x34]
movzx eax, al
cmovle ecx, eax
mov dword [esp + 0x34], ecx
mov ecx, 0xff
mov eax, ecx
sub eax, ebx
mov ebx, dword [esp + 0x20]
cmp ebx, eax
jle 0x4590ff
mov byte [esp + 0x11], cl
jmp 0x459107
add byte [esp + 0x11], dl
mov ebx, dword [esp + 0x20]
mov eax, ecx
sub eax, dword [esp + 0x28]
cmp ebx, eax
jle 0x459117
mov byte [esp + 0x10], cl
jmp 0x459121
mov ebx, dword [esp + 0x18]
add ebx, edx
mov byte [esp + 0x10], bl
sub ecx, dword [esp + 0x70]
cmp dword [esp + 0x20], ecx
jle 0x459132
mov byte [esp + 0x14], 0xff
jmp 0x45913a
add dl, byte [esp + 0x38]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x5c]
xor ecx, ecx
mov ebx, dword [esp + 0x60]
test edx, edx
jle 0x4591f4
lea eax, [edx - 1]
mov dword [esp + 0x28], eax
mov edx, dword [esp + 0x48]
cmp edx, dword [esp + 0x50]
jle 0x45917c
cmp dword [esp + 0x3c], edi
jle 0x459167
mov esi, eax
jmp 0x459195
mov eax, ecx
cdq
idiv ebx
lea esi, [eax + 1]
mov eax, ecx
cdq
idiv ebx
imul esi, ebx
sub esi, edx
dec esi
jmp 0x459195
cmp dword [esp + 0x3c], edi
jle 0x459193
cdq
idiv ebx
mov esi, eax
mov eax, ecx
cdq
idiv ebx
imul esi, ebx
add esi, edx
jmp 0x459195
mov esi, ecx
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + esi*4]
mov edx, eax
shr edx, 0x10
shr eax, 8
cmp dl, byte [esp + 0x12]
jb 0x4591d3
cmp dl, byte [esp + 0x11]
ja 0x4591d3
cmp al, byte [esp + 0x4c]
jb 0x4591d3
cmp al, byte [esp + 0x10]
ja 0x4591d3
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + esi*4]
cmp al, byte [esp + 0x34]
jb 0x4591d3
cmp al, byte [esp + 0x14]
jbe 0x459028
mov eax, dword [esp + 0x28]
inc ecx
dec eax
mov dword [esp + 0x28], eax
cmp ecx, dword [esp + 0x5c]
jl 0x459153
jmp 0x45902d
mov ebx, dword [esp + 0x60]
mov esi, dword [esp + 0x28]
push dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push 0
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [esp + 0x40], 0
je 0x45925a
mov al, byte [esp + 0x13]
mov byte [esp + 0x13], al
mov eax, dword [esp + 0x44]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x45924a
mov edi, dword [esp + 0x30]
push eax
push dword [esp + 0x44]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esp + 0x40]
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x45925e
push dword [esp + 0x40]
mov edi, dword [esp + 0x34]
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x45925e
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x44]
test eax, eax
je 0x45926d
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x459563
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 0x4592ce
cmp byte [esp + 0x13], 0
je 0x4592ce
test edi, edi
je 0x4592af
mov eax, esi
mov ecx, edi
cdq
idiv ebx
push 0x18
sub edx, dword [esp + 0x58]
add edx, dword [esp + 0x68]
mov eax, edx
cdq
push edx
push eax
call fcn.00401490
mov ecx, dword [esp + 0x6c]
test ecx, ecx
je 0x4592ce
mov eax, esi
cdq
idiv ebx
push 0x18
sub eax, dword [esp + 0x5c]
add eax, dword [esp + 0x6c]
cdq
push edx
push eax
call fcn.00401490
cmp byte [esp + 0x13], 0
mov ecx, 0x4e613c
push 1
push 0
mov eax, 0x4cfd08
cmove eax, ecx
mov ecx, dword [0x4fb9cc]
push 0xffffffffffffffff
push eax
call fcn.004b5b70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov eax, dword [esp + 0x20]
test eax, eax
jle 0x4593e7
mov dl, byte [esp + 0x11]
movzx esi, dl
cmp eax, esi
jle 0x459319
mov byte [esp + 0x12], 0
jmp 0x459325
mov dh, dl
mov byte [esp + 0x14], al
sub dh, al
mov byte [esp + 0x12], dh
mov ebx, dword [esp + 0x18]
mov al, bl
sub al, byte [esp + 0x14]
movzx ecx, bl
cmp dword [esp + 0x20], ecx
mov dword [esp + 0x4c], ecx
movzx eax, al
mov dword [esp + 0x18], 0
mov ecx, dword [esp + 0x18]
cmovle ecx, eax
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x38]
mov dword [esp + 0x18], ecx
movzx ecx, al
sub al, byte [esp + 0x14]
cmp dword [esp + 0x20], ecx
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x1c]
movzx eax, al
cmovle ecx, eax
mov dword [esp + 0x1c], ecx
mov ecx, 0xff
mov eax, ecx
sub eax, esi
cmp dword [esp + 0x20], eax
jle 0x45938e
mov byte [esp + 0x11], cl
jmp 0x459398
mov al, byte [esp + 0x14]
add al, dl
mov byte [esp + 0x11], al
mov edx, dword [esp + 0x20]
mov eax, ecx
sub eax, dword [esp + 0x4c]
cmp edx, eax
jle 0x4593ac
mov byte [esp + 0x13], cl
jmp 0x4593b6
mov al, byte [esp + 0x14]
add al, bl
mov byte [esp + 0x13], al
sub ecx, dword [esp + 0x70]
cmp edx, ecx
mov edx, dword [esp + 0x24]
jle 0x4593c9
mov byte [esp + 0x14], 0xff
jmp 0x459417
mov eax, dword [esp + 0x14]
add al, byte [esp + 0x38]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
jmp 0x459417
mov al, byte [esp + 0x10]
mov byte [esp + 0x12], al
mov al, byte [esp + 0x10]
mov dword [esp + 0x18], eax
mov al, byte [esp + 0x10]
mov dword [esp + 0x1c], eax
mov al, byte [esp + 0x10]
mov byte [esp + 0x11], al
mov al, byte [esp + 0x10]
mov byte [esp + 0x13], al
mov al, byte [esp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x48]
mov ebx, eax
mov ecx, dword [esp + 0x50]
cmp eax, ecx
jle 0x45942e
xor eax, eax
cmp ebx, ecx
setge al
jmp 0x459435
xor eax, eax
cmp ebx, ecx
setle al
test eax, eax
je 0x45953b
mov eax, dword [esp + 0x3c]
mov esi, eax
cmp eax, edi
jle 0x459450
xor eax, eax
cmp esi, edi
setge al
jmp 0x459457
xor eax, eax
cmp esi, edi
setle al
test eax, eax
je 0x459521
push esi
push ebx
push edx
call dword [sym.imp.GDI32.dll_GetPixel]
cmp dword [esp + 0x20], 1
jge 0x4594d5
cmp eax, dword [ebp + 0x18]
jne 0x459507
push dword [esp + 0x24]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edi, dword [esp + 0x30]
test edi, edi
je 0x45949e
sub ebx, dword [esp + 0x54]
mov ecx, edi
push 0x18
mov eax, ebx
cdq
push edx
push eax
call fcn.00401490
mov ecx, dword [esp + 0x6c]
test ecx, ecx
je 0x4594b6
sub esi, dword [esp + 0x58]
push 0x18
mov eax, esi
cdq
push edx
push eax
call fcn.00401490
mov ecx, dword [0x4fb9cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4cfd08
call fcn.004b5b70
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 + 0x12]
jb 0x459507
cmp al, byte [esp + 0x11]
ja 0x459507
cmp cl, byte [esp + 0x18]
jb 0x459507
cmp cl, byte [esp + 0x13]
ja 0x459507
cmp dl, byte [esp + 0x1c]
jb 0x459507
cmp dl, byte [esp + 0x14]
jbe 0x459478
mov edx, dword [esp + 0x24]
xor eax, eax
cmp dword [esp + 0x3c], edi
setle al
lea esi, [esi + eax*2]
mov eax, dword [esp + 0x3c]
dec esi
jmp 0x459443
mov ecx, dword [esp + 0x50]
xor eax, eax
cmp dword [esp + 0x48], ecx
setle al
lea ebx, [ebx + eax*2]
mov eax, dword [esp + 0x48]
dec ebx
jmp 0x459421
push edx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [0x4fb9cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4e613c
call fcn.004b5b70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
cmp byte [ebp + 0x24], 0
mov ecx, 0x4e613c
mov eax, 0x4e6674
cmove ecx, eax
cmp word [ecx], 0x30
jne 0x459581
cmp word [ecx + 2], 0
je 0x45958f
mov eax, dword [0x4f90f4]
test byte [eax + 0x100], 1
jne 0x4595aa
push 1
push 0
push 0xffffffffffffffff
push ecx
mov ecx, dword [0x4fb9cc]
call fcn.004b5b70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
push 0x4cfc40
push 0
push ecx
mov ecx, dword [esp + 0x80]
call fcn.0044e3e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20