Function at 0x457d50
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 0x457d83
mov edx, str.Fast
mov ecx, esi
call fcn.004b09f0
mov byte [esp + 0x11], 0
test eax, eax
je 0x457d88
mov byte [esp + 0x11], 1
mov edx, 0x4ed4fc
mov ecx, esi
call fcn.004b09f0
mov ebx, dword [ebp + 0x18]
movzx edx, bx
shr edx, 8
movzx ecx, bl
shl ecx, 8
or edx, ecx
mov dword [esp + 0x4c], eax
mov ecx, ebx
shl edx, 8
shr ecx, 0x10
movzx ecx, cl
or edx, ecx
test eax, eax
je 0x457dc5
mov dword [esp + 0x34], ebx
mov ebx, edx
mov dword [ebp + 0x18], ebx
jmp 0x457dc9
mov dword [esp + 0x34], edx
cmp byte [ebp + 0x24], 0
mov eax, dword [0x4fc2a8]
mov dword [esp + 0x30], eax
je 0x457ddc
xor ebx, ebx
jmp 0x457de9
mov cl, 1
cmp cl, byte [edi + 1]
sbb ebx, ebx
and ebx, dword [0x4fc2ac]
mov dword [esp + 0x70], ebx
test eax, eax
je 0x457e00
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, eax
call fcn.004b4bf0
test ebx, ebx
je 0x457e13
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, ebx
call fcn.004b4bf0
xorps xmm0, xmm0
lea edx, [esp + 0x5c]
push 0
lea ecx, [esp + 0x5c]
movlpd qword [esp + 0x5c], xmm0
call fcn.004b1a30
mov ebx, dword [ebp + 8]
add esp, 4
mov edx, dword [esp + 0x58]
add ebx, edx
add edx, dword [ebp + 0x10]
mov esi, ebx
mov ecx, dword [ebp + 0xc]
mov eax, edx
add ecx, dword [esp + 0x5c]
mov edi, dword [ebp + 0x14]
add edi, dword [esp + 0x5c]
cmp ebx, edx
mov dword [esp + 0x48], ebx
cmovle eax, ebx
mov dword [esp + 0x3c], ecx
cmovle esi, edx
mov dword [esp + 0x68], eax
cmp ecx, edi
mov dword [esp + 0x54], edx
mov ebx, ecx
mov eax, edi
cmovle eax, ecx
cmovle ebx, edi
xor ecx, ecx
mov dword [esp + 0x6c], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
cmovns ecx, eax
mov dword [esp + 0x20], ecx
cmp ecx, 0xff
jle 0x457e9c
mov dword [esp + 0x20], 0xff
mov dword [esp + 0x14], 0xff
jmp 0x457ea4
mov dword [esp + 0x14], ecx
test ecx, ecx
jle 0x457ebb
mov ecx, dword [ebp + 0x18]
mov eax, ecx
shr eax, 8
mov dword [esp + 0x18], eax
mov eax, ecx
mov byte [esp + 0x10], cl
shr eax, 0x10
jmp 0x457ecf
mov al, byte [esp + 0x12]
mov byte [esp + 0x10], al
mov al, byte [esp + 0x12]
mov dword [esp + 0x18], eax
mov al, byte [esp + 0x12]
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 0x4586d2
cmp byte [esp + 0x11], 0
mov byte [esp + 0x13], 0
je 0x458468
sub esi, dword [esp + 0x68]
xor ecx, ecx
sub ebx, dword [esp + 0x6c]
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 0x458359
push ebx
push esi
push dword [esp + 0x2c]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x44], eax
test eax, eax
je 0x458359
push eax
push dword [esp + 0x44]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x458359
push 0xcc0020
push dword [esp + 0x70]
push dword [esp + 0x70]
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 0x458359
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x11]
push 8
push eax
lea eax, [esp + 0x30]
mov edx, ebx
push eax
lea eax, [esp + 0x70]
push eax
call fcn.00457b50
add esp, 0x10
mov dword [esp + 0x2c], eax
test eax, eax
je 0x458359
mov ebx, dword [esp + 0x64]
mov edx, ebx
imul edx, dword [esp + 0x28]
cmp byte [esp + 0x11], 0
mov dword [esp + 0x60], edx
je 0x45803e
xor esi, esi
test edx, edx
jle 0x458042
cmp edx, 0x10
jb 0x458030
mov eax, edx
and eax, reloc.WSOCK32.dll_ntohs
jns 0x457fd9
dec eax
or eax, 0xfffffff0
inc eax
movaps xmm1, xmmword [0x4f2100]
mov ecx, edx
sub ecx, eax
mov eax, dword [esp + 0x2c]
add eax, 0x20
nop dword [eax + eax]
movups xmm0, xmmword [eax - 0x20]
add esi, 0x10
lea eax, [eax + 0x40]
andps xmm0, xmm1
movups xmmword [eax - 0x60], xmm0
movups xmm0, xmmword [eax - 0x50]
andps xmm0, xmm1
movups xmmword [eax - 0x50], xmm0
movups xmm0, xmmword [eax - 0x40]
andps xmm0, xmm1
movups xmmword [eax - 0x40], xmm0
movups xmm0, xmmword [eax - 0x30]
andps xmm0, xmm1
movups xmmword [eax - 0x30], xmm0
cmp esi, ecx
jl 0x457ff0
mov eax, dword [esp + 0x2c]
cmp esi, edx
jge 0x458042
nop
and dword [eax + esi*4], 0xf8f8f8f8
inc esi
cmp esi, edx
jl 0x458030
jmp 0x458042
mov esi, dword [esp + 0x28]
cmp byte [ebp + 0x24], 0
je 0x4580cc
mov edx, dword [eax]
and edx, 0xffffff
cmp dword [esp + 0x4c], 0
jne 0x458071
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.00406560
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.004b4bf0
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 0x4583cb
cmp dword [esp + 0x20], 1
jge 0x4581c0
cmp byte [esp + 0x11], 0
je 0x4580e6
and dword [esp + 0x34], 0xf8f8f8f8
xor ecx, ecx
test edx, edx
jle 0x458192
dec edx
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x48]
cmp eax, dword [esp + 0x54]
jle 0x458122
cmp dword [esp + 0x3c], edi
jle 0x458109
mov esi, edx
jmp 0x458141
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 0x458141
cmp dword [esp + 0x3c], edi
jle 0x45813f
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 0x458141
mov esi, ecx
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + esi*4]
and eax, 0xffffff
cmp eax, dword [esp + 0x34]
je 0x45818d
inc ecx
dec edx
mov dword [esp + 0x18], edx
cmp ecx, dword [esp + 0x60]
jl 0x4580f5
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 0x4583cb
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 0x4583cb
cmp byte [esp + 0x11], 0
mov al, byte [esp + 0x10]
mov ecx, dword [esp + 0x18]
je 0x4581e1
and al, 0xf8
and ecx, 0xfffffff8
and byte [esp + 0x38], 0xf8
mov byte [esp + 0x10], al
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x20]
movzx ebx, al
cmp edx, ebx
jle 0x4581f3
mov byte [esp + 0x11], 0
jmp 0x458205
sub al, dl
mov edx, dword [esp + 0x20]
mov byte [esp + 0x11], 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 + 0x50], ecx
movzx ecx, al
sub al, byte [esp + 0x14]
cmp edx, ecx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x4c], 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 0x458264
mov byte [esp + 0x10], cl
jmp 0x45826c
add byte [esp + 0x10], dl
mov ebx, dword [esp + 0x20]
mov eax, ecx
sub eax, dword [esp + 0x28]
cmp ebx, eax
jle 0x45827c
mov byte [esp + 0x12], cl
jmp 0x458286
mov ebx, dword [esp + 0x18]
add ebx, edx
mov byte [esp + 0x12], bl
sub ecx, dword [esp + 0x4c]
cmp dword [esp + 0x20], ecx
jle 0x458297
mov byte [esp + 0x14], 0xff
jmp 0x45829f
add dl, byte [esp + 0x38]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x60]
xor ecx, ecx
mov ebx, dword [esp + 0x64]
test edx, edx
jle 0x458361
lea eax, [edx - 1]
mov dword [esp + 0x28], eax
nop dword [eax + eax]
mov edx, dword [esp + 0x48]
cmp edx, dword [esp + 0x54]
jle 0x4582e9
cmp dword [esp + 0x3c], edi
jle 0x4582d4
mov esi, eax
jmp 0x458302
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 0x458302
cmp dword [esp + 0x3c], edi
jle 0x458300
cdq
idiv ebx
mov esi, eax
mov eax, ecx
cdq
idiv ebx
imul esi, ebx
add esi, edx
jmp 0x458302
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 + 0x11]
jb 0x458340
cmp dl, byte [esp + 0x10]
ja 0x458340
cmp al, byte [esp + 0x50]
jb 0x458340
cmp al, byte [esp + 0x12]
ja 0x458340
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + esi*4]
cmp al, byte [esp + 0x34]
jb 0x458340
cmp al, byte [esp + 0x14]
jbe 0x45818d
mov eax, dword [esp + 0x28]
inc ecx
dec eax
mov dword [esp + 0x28], eax
cmp ecx, dword [esp + 0x60]
jl 0x4582c0
jmp 0x458192
mov ebx, dword [esp + 0x64]
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 0x4583c7
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 0x4583b7
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 0x4583cb
push dword [esp + 0x40]
mov edi, dword [esp + 0x34]
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x4583cb
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4583da
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4586d2
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 0x45843b
cmp byte [esp + 0x13], 0
je 0x45843b
test edi, edi
je 0x45841c
mov eax, esi
mov ecx, edi
cdq
idiv ebx
push 0x18
sub edx, dword [esp + 0x5c]
add edx, dword [esp + 0x6c]
mov eax, edx
cdq
push edx
push eax
call fcn.00401470
mov ecx, dword [esp + 0x70]
test ecx, ecx
je 0x45843b
mov eax, esi
cdq
idiv ebx
push 0x18
sub eax, dword [esp + 0x60]
add eax, dword [esp + 0x70]
cdq
push edx
push eax
call fcn.00401470
cmp byte [esp + 0x13], 0
mov ecx, 0x4e513c
push 1
push 0
mov eax, 0x4cecf8
cmove eax, ecx
mov ecx, dword [0x4faa64]
push 0xffffffffffffffff
push eax
call fcn.004b4bf0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov eax, dword [esp + 0x20]
test eax, eax
jle 0x458554
mov dl, byte [esp + 0x10]
movzx esi, dl
cmp eax, esi
jle 0x458486
mov byte [esp + 0x11], 0
jmp 0x458492
mov dh, dl
mov byte [esp + 0x14], al
sub dh, al
mov byte [esp + 0x11], 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 + 0x50], 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 + 0x4c], 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 0x4584fb
mov byte [esp + 0x10], cl
jmp 0x458505
mov al, byte [esp + 0x14]
add al, dl
mov byte [esp + 0x10], al
mov edx, dword [esp + 0x20]
mov eax, ecx
sub eax, dword [esp + 0x50]
cmp edx, eax
jle 0x458519
mov byte [esp + 0x13], cl
jmp 0x458523
mov al, byte [esp + 0x14]
add al, bl
mov byte [esp + 0x13], al
sub ecx, dword [esp + 0x4c]
cmp edx, ecx
mov edx, dword [esp + 0x24]
jle 0x458536
mov byte [esp + 0x14], 0xff
jmp 0x458584
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 0x458584
mov al, byte [esp + 0x12]
mov byte [esp + 0x11], al
mov al, byte [esp + 0x12]
mov dword [esp + 0x18], eax
mov al, byte [esp + 0x12]
mov dword [esp + 0x1c], eax
mov al, byte [esp + 0x12]
mov byte [esp + 0x10], al
mov al, byte [esp + 0x12]
mov byte [esp + 0x13], al
mov al, byte [esp + 0x12]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x48]
mov ebx, eax
mov ecx, dword [esp + 0x54]
nop
cmp eax, ecx
jle 0x45859d
xor eax, eax
cmp ebx, ecx
setge al
jmp 0x4585a4
xor eax, eax
cmp ebx, ecx
setle al
test eax, eax
je 0x4586aa
mov eax, dword [esp + 0x3c]
mov esi, eax
cmp eax, edi
jle 0x4585bf
xor eax, eax
cmp esi, edi
setge al
jmp 0x4585c6
xor eax, eax
cmp esi, edi
setle al
test eax, eax
je 0x458690
push esi
push ebx
push edx
call dword [sym.imp.GDI32.dll_GetPixel]
cmp dword [esp + 0x20], 1
jge 0x458644
cmp eax, dword [ebp + 0x18]
jne 0x458676
push dword [esp + 0x24]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edi, dword [esp + 0x30]
test edi, edi
je 0x45860d
sub ebx, dword [esp + 0x58]
mov ecx, edi
push 0x18
mov eax, ebx
cdq
push edx
push eax
call fcn.00401470
mov ecx, dword [esp + 0x70]
test ecx, ecx
je 0x458625
sub esi, dword [esp + 0x5c]
push 0x18
mov eax, esi
cdq
push edx
push eax
call fcn.00401470
mov ecx, dword [0x4faa64]
push 1
push 0
push 0xffffffffffffffff
push 0x4cecf8
call fcn.004b4bf0
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 + 0x11]
jb 0x458676
cmp al, byte [esp + 0x10]
ja 0x458676
cmp cl, byte [esp + 0x18]
jb 0x458676
cmp cl, byte [esp + 0x13]
ja 0x458676
cmp dl, byte [esp + 0x1c]
jb 0x458676
cmp dl, byte [esp + 0x14]
jbe 0x4585e7
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 0x4585b2
mov ecx, dword [esp + 0x54]
xor eax, eax
cmp dword [esp + 0x48], ecx
setle al
lea ebx, [ebx + eax*2]
mov eax, dword [esp + 0x48]
dec ebx
jmp 0x458590
push edx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [0x4faa64]
push 1
push 0
push 0xffffffffffffffff
push 0x4e513c
call fcn.004b4bf0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
cmp byte [ebp + 0x24], 0
mov ecx, 0x4e513c
mov eax, 0x4e5674
cmove ecx, eax
cmp word [ecx], 0x30
jne 0x4586f0
cmp word [ecx + 2], 0
je 0x4586fe
mov eax, dword [0x4f8174]
test byte [eax + 0x100], 1
jne 0x458719
push 1
push 0
push 0xffffffffffffffff
push ecx
mov ecx, dword [0x4faa64]
call fcn.004b4bf0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
push 0x4cec30
push 0
push ecx
mov ecx, dword [esp + 0x80]
call fcn.0044d640
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20