Function at 0x450010
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
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 0x450043
mov edx, str.Fast
mov ecx, esi
call fcn.0049a8f0
mov byte [esp + 0xc], 0
test eax, eax
je 0x450048
mov byte [esp + 0xc], 1
mov edx, 0x4da4fc
mov ecx, esi
call fcn.0049a8f0
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 0x45008a
mov dword [esp + 0x20], ebx
mov ebx, esi
mov dword [ebp + 0x18], ebx
jmp 0x45008e
mov dword [esp + 0x20], esi
cmp byte [ebp + 0x24], 0
mov eax, dword [0x4e90f8]
mov dword [esp + 0x60], eax
je 0x4500a1
xor ebx, ebx
jmp 0x4500ae
mov cl, 1
cmp cl, byte [edi + 1]
sbb ebx, ebx
and ebx, dword [0x4e90fc]
mov dword [esp + 0x64], ebx
test eax, eax
je 0x4500c5
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, eax
call fcn.0049e6b0
test ebx, ebx
je 0x4500d8
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, ebx
call fcn.0049e6b0
xorps xmm0, xmm0
lea edx, [esp + 0x48]
push 0
lea ecx, [esp + 0x48]
movlpd qword [esp + 0x48], xmm0
call fcn.0049b830
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 0x450159
mov dword [esp + 0x10], 0xff
jmp 0x45015d
test ecx, ecx
jle 0x450174
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 0x450188
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 0x4508bd
cmp byte [esp + 0xc], 0
mov byte [esp + 0xe], 0
je 0x450659
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 0x450588
push ebx
push esi
push dword [esp + 0x34]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x54], eax
test eax, eax
je 0x450588
push eax
push dword [esp + 0x54]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x6c], eax
test eax, eax
je 0x450588
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 0x450588
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.0044fe00
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x450588
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 0x45030e
xor esi, esi
test edx, edx
jle 0x450312
cmp edx, 0x10
jb 0x4502f3
mov eax, edx
and eax, reloc.WSOCK32.dll_ntohs
jns 0x45029b
dec eax
or eax, 0xfffffff0
inc eax
movaps xmm2, xmmword [0x4dd2f0]
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 0x4502b0
mov al, byte [esp + 0xc]
mov ecx, dword [esp + 0x1c]
cmp esi, edx
jge 0x450312
nop word [eax + eax]
and dword [ecx + esi*4], 0xf8f8f8f8
inc esi
cmp esi, edx
jl 0x450300
jmp 0x450312
mov esi, dword [esp + 0x3c]
cmp byte [ebp + 0x24], 0
je 0x450371
mov edx, dword [ecx]
and edx, 0xffffff
cmp byte [esp + 0xf], 0
jne 0x45033d
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.004058d0
mov ecx, dword [esp + 0x6c]
lea eax, [esp + 0x84]
add esp, 0xc
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.0049e6b0
mov byte [esp + 0xe], 1
jmp 0x450590
cmp dword [esp + 0x10], 1
jge 0x45040e
test al, al
je 0x450388
and dword [esp + 0x20], 0xf8f8f8f8
xor ecx, ecx
test edx, edx
jle 0x450590
dec edx
mov dword [esp + 0x14], edx
nop word [eax + eax]
mov eax, dword [esp + 0x38]
cmp eax, dword [esp + 0x40]
jle 0x4503c8
cmp dword [esp + 0x28], edi
jle 0x4503b4
mov esi, edx
jmp 0x4503e7
mov eax, ecx
cdq
idiv ebx
lea esi, [eax + 1]
imul esi, ebx
sub esi, edx
mov edx, dword [esp + 0x14]
dec esi
jmp 0x4503e7
cmp dword [esp + 0x28], edi
jle 0x4503e5
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 0x4503e7
mov esi, ecx
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + esi*4]
and eax, 0xffffff
cmp eax, dword [esp + 0x20]
je 0x450367
inc ecx
dec edx
mov dword [esp + 0x14], edx
cmp ecx, dword [esp + 0x4c]
jl 0x4503a0
jmp 0x450590
mov edx, dword [esp + 0x14]
test al, al
mov al, byte [esp + 0xd]
je 0x45042c
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 0x45049a
mov byte [esp + 0xc], dl
jmp 0x4504a4
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 0x4504b4
mov byte [esp + 0xf], dl
jmp 0x4504c0
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 0x4504cf
mov byte [esp + 0x10], 0xff
jmp 0x4504d9
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 0x450590
dec eax
mov dword [esp + 0x34], eax
mov edx, dword [esp + 0x38]
cmp edx, dword [esp + 0x40]
jle 0x450518
cmp dword [esp + 0x28], edi
jle 0x450508
mov esi, eax
jmp 0x450531
mov eax, ecx
cdq
idiv ebx
lea esi, [eax + 1]
imul esi, ebx
sub esi, edx
dec esi
jmp 0x450531
cmp dword [esp + 0x28], edi
jle 0x45052f
cdq
idiv ebx
mov esi, eax
mov eax, ecx
cdq
idiv ebx
imul esi, ebx
add esi, edx
jmp 0x450531
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 0x45056a
cmp cl, byte [esp + 0xc]
ja 0x45056a
cmp al, byte [esp + 0x3c]
jb 0x45056a
cmp al, byte [esp + 0xf]
ja 0x45056a
cmp dl, byte [esp + 0x20]
jb 0x45056a
cmp dl, byte [esp + 0x10]
jbe 0x450367
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 0x4504f4
jmp 0x450590
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 0x4505bb
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x4505b4
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 0x4505ca
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4508bd
push eax
call fcn.004b2343
add esp, 4
cmp byte [ebp + 0x24], 0
jne 0x45062c
cmp byte [esp + 0xe], 0
je 0x45062c
mov ecx, dword [esp + 0x60]
test ecx, ecx
je 0x45060d
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.00401520
mov ecx, dword [esp + 0x64]
test ecx, ecx
je 0x45062c
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.00401520
cmp byte [esp + 0xe], 0
mov ecx, 0x4d07c0
push 1
push 0
mov eax, 0x4d03bc
cmove eax, ecx
mov ecx, dword [0x4e7934]
push 0xffffffffffffffff
push eax
call fcn.0049e6b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x45073f
mov cl, byte [esp + 0xd]
movzx esi, cl
cmp eax, esi
jle 0x450677
mov byte [esp + 0xd], 0
jmp 0x45067f
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 0x4506e8
mov byte [esp + 0x1b], dl
jmp 0x4506f2
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 0x450708
mov byte [esp + 0xf], dl
jmp 0x450710
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 0x450723
mov byte [esp + 0xc], 0xff
jmp 0x45076f
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 0x45076f
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 0x45078d
xor eax, eax
cmp ebx, ecx
setge al
jmp 0x450794
xor eax, eax
cmp ebx, ecx
setle al
test eax, eax
je 0x4507d6
mov eax, dword [esp + 0x28]
mov esi, eax
nop
cmp eax, edi
jle 0x4507ad
xor eax, eax
cmp esi, edi
setge al
jmp 0x4507b4
xor eax, eax
cmp esi, edi
setle al
test eax, eax
je 0x450854
push esi
push ebx
push edx
call dword [sym.imp.GDI32.dll_GetPixel]
cmp dword [esp + 0x10], 1
jge 0x45080c
cmp eax, dword [ebp + 0x18]
jne 0x45083a
mov byte [esp + 0xe], 1
push dword [esp + 0x2c]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp byte [esp + 0xe], 0
jne 0x45086e
mov ecx, dword [0x4e7934]
push 1
push 0
push 0xffffffffffffffff
push 0x4d07c0
call fcn.0049e6b0
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 0x45083a
cmp al, byte [esp + 0x1b]
ja 0x45083a
cmp cl, byte [esp + 0x14]
jb 0x45083a
cmp cl, byte [esp + 0xf]
ja 0x45083a
cmp dl, byte [esp + 0x1c]
jb 0x45083a
cmp dl, byte [esp + 0xc]
jbe 0x4507d1
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 0x4507a0
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 0x450780
mov ecx, dword [esp + 0x60]
test ecx, ecx
je 0x450886
sub ebx, dword [esp + 0x44]
push 0x18
mov eax, ebx
cdq
push edx
push eax
call fcn.00401520
mov ecx, dword [esp + 0x64]
test ecx, ecx
je 0x45089e
sub esi, dword [esp + 0x48]
push 0x18
mov eax, esi
cdq
push edx
push eax
call fcn.00401520
mov ecx, dword [0x4e7934]
push 1
push 0
push 0xffffffffffffffff
push 0x4d03bc
call fcn.0049e6b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
cmp byte [ebp + 0x24], 0
mov ecx, 0x4d07c0
mov eax, 0x4d6028
cmove ecx, eax
cmp byte [ecx], 0x30
jne 0x4508d9
cmp byte [ecx + 1], 0
je 0x4508e7
mov eax, dword [0x4e498c]
test byte [eax + 0xe0], 1
jne 0x450902
push 1
push 0
push 0xffffffffffffffff
push ecx
mov ecx, dword [0x4e7934]
call fcn.0049e6b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
push 0x4d0335
push 0
push ecx
mov ecx, dword [esp + 0x7c]
call fcn.00446950
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20