Function at 0x427b40
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
push ebx
mov dword [esp + 0x5c], ecx
xorps xmm0, xmm0
mov ecx, dword [ebp + 0x1c]
movzx ebx, cx
movzx eax, cl
shl eax, 8
shr ebx, 8
or ebx, eax
mov dword [esp + 0x58], edx
mov eax, ecx
shl ebx, 8
shr eax, 0x10
lea edx, [esp + 0x64]
push esi
movzx eax, al
lea ecx, [esp + 0x64]
push edi
or ebx, eax
movlpd qword [esp + 0x68], xmm0
push 0
mov dword [esp + 0x24], ebx
call fcn.00482be0
mov edi, dword [ebp + 0xc]
add esp, 4
mov edx, dword [esp + 0x68]
add edi, edx
add edx, dword [ebp + 0x14]
mov esi, edi
mov ecx, dword [ebp + 0x10]
add ecx, dword [esp + 0x6c]
mov eax, dword [ebp + 0x18]
add eax, dword [esp + 0x6c]
cmp edi, edx
mov dword [esp + 0x5c], edx
cmovle esi, edx
mov dword [esp + 0x58], edi
cmovle edx, edi
mov dword [esp + 0x3c], ecx
cmp ecx, eax
mov dword [esp + 0x38], edx
mov edi, ecx
mov dword [esp + 0x40], eax
cmovle edi, eax
mov edx, eax
mov eax, dword [ebp + 0x20]
cmovle edx, ecx
xor ecx, ecx
mov dword [esp + 0x50], edx
test eax, eax
cmovns ecx, eax
mov dword [esp + 0x54], ecx
cmp ecx, 0xff
jle 0x427c0e
mov eax, ebx
mov ecx, 0xff
shr eax, 8
shr ebx, 0x10
mov dword [esp + 0x54], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebx
jmp 0x427c40
mov dword [esp + 0x14], ecx
test ecx, ecx
jle 0x427c28
mov eax, ebx
shr eax, 8
shr ebx, 0x10
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebx
jmp 0x427c40
mov al, byte [esp + 0x13]
mov dword [esp + 0x20], eax
mov al, byte [esp + 0x13]
mov dword [esp + 0x24], eax
mov al, byte [esp + 0x13]
mov dword [esp + 0x28], eax
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
mov dword [esp + 0x2c], ebx
test ebx, ebx
jne 0x427c5e
mov eax, 0xa0070000
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
sub esi, dword [esp + 0x38]
xor ecx, ecx
sub edi, dword [esp + 0x50]
xor eax, eax
push ebx
mov byte [esp + 0x12], 0
inc esi
mov dword [esp + 0x38], ecx
inc edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esp + 0x30], eax
test eax, eax
je 0x427fef
push edi
push esi
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x34], eax
test eax, eax
je 0x427fef
push eax
push dword [esp + 0x34]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x18], eax
test eax, eax
je 0x427fef
push 0xcc0020
push dword [esp + 0x54]
push dword [esp + 0x40]
push ebx
push edi
push esi
mov esi, dword [esp + 0x48]
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
je 0x427fef
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x10]
push 8
push eax
lea eax, [esp + 0x50]
mov edx, esi
push eax
lea eax, [esp + 0x58]
push eax
call fcn.00427940
mov edi, eax
add esp, 0x10
mov dword [esp + 0x1c], edi
test edi, edi
je 0x427fef
mov ebx, dword [esp + 0x4c]
mov edx, ebx
imul edx, dword [esp + 0x48]
cmp byte [esp + 0x10], 0
mov dword [esp + 0x44], edx
je 0x427da1
xor esi, esi
test edx, edx
jle 0x427da5
cmp edx, 0x10
jb 0x427d93
mov eax, edx
and eax, reloc.OLEAUT32.dll_SafeArrayDestroy
jns 0x427d3f
dec eax
or eax, 0xfffffff0
inc eax
movaps xmm2, xmmword [0x4dbaf0]
mov ecx, edx
sub ecx, eax
lea eax, [edi + 0x20]
nop dword [eax]
movups xmm0, xmmword [eax - 0x20]
lea eax, [eax + 0x40]
add esi, 0x10
movaps xmm1, xmm2
andps xmm1, xmm0
movups xmmword [eax - 0x60], xmm1
movaps xmm1, xmm2
movups xmm0, xmmword [eax - 0x50]
andps xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movaps xmm1, xmm2
movups xmm0, xmmword [eax - 0x40]
andps xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
andps xmm0, xmm2
movups xmmword [eax - 0x30], xmm0
cmp esi, ecx
jl 0x427d50
cmp esi, edx
jge 0x427da5
and dword [edi + esi*4], 0xf8f8f8f8
inc esi
cmp esi, edx
jl 0x427d93
jmp 0x427da5
mov esi, dword [esp + 0x48]
mov ecx, dword [ebp + 0x24]
test ecx, ecx
je 0x427dc7
mov eax, dword [edi]
and eax, 0xffffff
push eax
push 0x4d4014
push ecx
call fcn.00406520
add esp, 0xc
jmp 0x427fd5
mov ecx, dword [esp + 0x54]
cmp ecx, 1
jge 0x427e60
cmp byte [esp + 0x10], 0
je 0x427de2
and dword [ebp + 0x1c], 0xf8f8f8f8
xor ecx, ecx
test edx, edx
jle 0x427fd5
lea edi, [edx - 1]
nop
mov eax, dword [esp + 0x58]
cmp eax, dword [esp + 0x5c]
mov eax, dword [esp + 0x3c]
jle 0x427e21
cmp eax, dword [esp + 0x40]
jle 0x427e08
mov esi, edi
jmp 0x427e40
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 + 0x44]
dec esi
jmp 0x427e40
cmp eax, dword [esp + 0x40]
jle 0x427e3e
mov eax, edi
cdq
idiv ebx
mov esi, eax
mov eax, ecx
cdq
idiv ebx
imul esi, ebx
add esi, edx
mov edx, dword [esp + 0x44]
jmp 0x427e40
mov esi, ecx
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + esi*4]
and eax, 0xffffff
cmp eax, dword [ebp + 0x1c]
je 0x427fd0
inc ecx
dec edi
cmp ecx, edx
jl 0x427df0
jmp 0x427fd5
cmp byte [esp + 0x10], 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
je 0x427e81
and al, 0xf8
and edx, 0xfffffff8
and byte [esp + 0x28], 0xf8
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
movzx edi, al
cmp ecx, edi
jle 0x427e8f
mov byte [esp + 0x11], 0
jmp 0x427e99
sub al, cl
mov byte [esp + 0x14], cl
mov byte [esp + 0x11], al
movzx eax, dl
mov dword [esp + 0x54], eax
cmp ecx, eax
jle 0x427eab
mov byte [esp + 0x12], 0
jmp 0x427eb5
mov al, dl
sub al, byte [esp + 0x14]
mov byte [esp + 0x12], al
mov eax, dword [esp + 0x28]
movzx edx, al
mov dword [esp + 0x48], edx
cmp ecx, edx
jle 0x427ecb
mov byte [esp + 0x13], 0
jmp 0x427ed3
sub al, byte [esp + 0x14]
mov byte [esp + 0x13], al
mov edx, 0xff
mov eax, edx
sub eax, edi
cmp ecx, eax
jle 0x427ee6
mov byte [esp + 0xf], dl
jmp 0x427ef6
mov al, byte [esp + 0x14]
mov byte [esp + 0xf], al
mov eax, dword [esp + 0x20]
add byte [esp + 0xf], al
mov eax, edx
sub eax, dword [esp + 0x54]
cmp ecx, eax
jle 0x427f06
mov byte [esp + 0x10], dl
jmp 0x427f16
mov eax, dword [esp + 0x14]
mov byte [esp + 0x10], al
mov eax, dword [esp + 0x24]
add byte [esp + 0x10], al
sub edx, dword [esp + 0x48]
cmp ecx, edx
jle 0x427f25
mov byte [esp + 0x14], 0xff
jmp 0x427f31
mov edx, dword [esp + 0x14]
add dl, byte [esp + 0x28]
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x44]
xor ecx, ecx
test eax, eax
jle 0x427ff5
lea edi, [eax - 1]
mov eax, dword [esp + 0x58]
cmp eax, dword [esp + 0x5c]
mov eax, dword [esp + 0x3c]
jle 0x427f6f
cmp eax, dword [esp + 0x40]
jle 0x427f5a
mov esi, edi
jmp 0x427f8a
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 0x427f8a
cmp eax, dword [esp + 0x40]
jle 0x427f88
mov eax, edi
cdq
idiv ebx
mov esi, eax
mov eax, ecx
cdq
idiv ebx
imul esi, ebx
add esi, edx
jmp 0x427f8a
mov esi, ecx
mov eax, dword [esp + 0x1c]
mov ebx, dword [eax + esi*4]
mov edx, ebx
mov eax, ebx
shr edx, 0x10
shr eax, 8
cmp dl, byte [esp + 0x11]
jb 0x427fbf
cmp dl, byte [esp + 0xf]
ja 0x427fbf
cmp al, byte [esp + 0x12]
jb 0x427fbf
cmp al, byte [esp + 0x10]
ja 0x427fbf
cmp bl, byte [esp + 0x13]
jb 0x427fbf
cmp bl, byte [esp + 0x14]
jbe 0x427fd0
inc ecx
dec edi
cmp ecx, dword [esp + 0x44]
jge 0x427fd5
mov ebx, dword [esp + 0x4c]
jmp 0x427f42
mov byte [esp + 0xe], 1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [esp + 0x2c]
mov edi, eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x18]
jmp 0x428039
mov esi, dword [esp + 0x48]
jmp 0x427ff9
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push ebx
push 0
mov edi, eax
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [esp + 0x30], 0
je 0x42804e
mov eax, dword [esp + 0x34]
mov bl, byte [esp + 0xe]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
mov byte [esp + 0xe], bl
test eax, eax
je 0x428044
push eax
push dword [esp + 0x34]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esp + 0x30]
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x42805d
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4280d2
push eax
call fcn.0049ee02
add esp, 4
cmp dword [ebp + 0x24], 0
jne 0x4280c6
mov bl, byte [esp + 0xe]
test bl, bl
je 0x4280bd
mov eax, esi
mov ecx, dword [esp + 0x60]
cdq
idiv dword [esp + 0x4c]
mov dword [ecx + 8], 1
sub edx, dword [esp + 0x68]
add edx, dword [esp + 0x38]
mov eax, edx
cdq
mov dword [ecx], eax
mov eax, esi
mov dword [ecx + 4], edx
cdq
idiv dword [esp + 0x4c]
mov ecx, dword [ebp + 8]
sub eax, dword [esp + 0x6c]
add eax, dword [esp + 0x50]
cdq
mov dword [ecx + 8], 1
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov ecx, dword [esp + 0x64]
movzx eax, bl
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or edi, 0xa0070000
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret