Function at 0x40afd0
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0ad0
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x4bd040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0xc], 0
mov esi, dword [ebp + 0x18]
mov eax, dword [ebp + 8]
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xc4], eax
jne 0x40b03b
cmp dword [ebp + 0x10], 0
jne 0x40b03b
mov dword [eax], 0xffffffff
mov dword [eax + 4], 0xffffffff
mov dword [eax + 8], 0xffffffff
mov dword [eax + 0xc], 0xff
jmp 0x40bd36
mov eax, dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0xa0], eax
call eax
cmp eax, dword [0x4bdd94]
mov edx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov eax, dword [sym.imp.USER32.dll_mouse_event]
mov dword [ebp - 0xac], edx
mov dword [ebp - 0xbc], eax
jne 0x40b505
mov ax, word [ebp + 0x14]
cwde
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov eax, dword [ebp + 0x10]
lea eax, [eax + ecx*2]
mov ecx, dword [0x4bdda8]
add eax, 0xfffffffa
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp + 0xc]
add eax, 0x168
mov dword [ebp - 0xb0], eax
cmp ecx, dword [0x4bddb0]
jl 0x40b50b
cmp ecx, dword [0x4bddb8]
jg 0x40b50b
mov edi, dword [0x4bddac]
cmp edi, dword [0x4bddb4]
jl 0x40b50b
cmp edi, dword [0x4bddbc]
jg 0x40b50b
mov eax, ecx
sub eax, dword [0x4bddb0]
mov dword [ebp - 0x94], eax
cmp eax, dword [ebp - 0xb0]
jl 0x40b50b
mov eax, dword [ebp - 0xb0]
add eax, 0x14
cmp dword [ebp - 0x94], eax
jg 0x40b50b
sub edi, dword [0x4bddb4]
mov eax, dword [ebp - 0xb8]
cmp edi, eax
jl 0x40b50b
add eax, 0x14
cmp edi, eax
jg 0x40b50b
cmp dword [0x4bddc8], 0
jne 0x40b50b
cmp dword [0x4bddcc], 0
jne 0x40b50b
push 1
call edx
bt ax, 0xf
jae 0x40b505
push 0
push 0
push 0
push 0
push 4
call dword [ebp - 0xbc]
mov edx, dword [esi]
lea ecx, [ebp - 0x68]
call fcn.00441520
mov edx, dword [esi + 8]
lea ecx, [ebp - 0x28]
call fcn.00441520
mov edx, dword [esi + 4]
lea ecx, [ebp - 0x124]
call fcn.00441520
mov edx, dword [ebp - 0x54]
mov edi, 0x202c
mov ecx, dword [ebp - 0x58]
mov eax, edx
sub eax, ecx
cmp eax, 2
jb 0x40b1ac
lea eax, [ecx + 2]
cmp edx, 0xf
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x68]
cmova eax, dword [ebp - 0x68]
mov word [eax + ecx], di
mov byte [eax + ecx + 2], 0
lea eax, [ebp - 0x68]
jmp 0x40b1ca
push 2
push 0x4b26b4
mov byte [ebp - 0x94], 0
lea ecx, [ebp - 0x68]
push dword [ebp - 0x94]
push 2
call fcn.004ae2c0
movups xmm0, xmmword [eax]
lea ecx, [ebp - 0xdc]
movups xmmword [ebp - 0x10c], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x10c]
movq qword [ebp - 0xfc], xmm0
push eax
push dword [ebp - 0xc4]
call fcn.004ae4b0
mov edx, dword [ebp - 0xc8]
mov eax, edx
mov ecx, dword [ebp - 0xcc]
sub eax, ecx
cmp eax, 2
jb 0x40b250
lea eax, [ecx + 2]
cmp edx, 0xf
mov dword [ebp - 0xcc], eax
lea eax, [ebp - 0xdc]
cmova eax, dword [ebp - 0xdc]
mov word [eax + ecx], di
mov byte [eax + ecx + 2], 0
lea eax, [ebp - 0xdc]
jmp 0x40b271
push 2
push 0x4b26b4
mov byte [ebp - 0x94], 0
lea ecx, [ebp - 0xdc]
push dword [ebp - 0x94]
push 2
call fcn.004ae2c0
movups xmm0, xmmword [eax]
lea ecx, [ebp - 0x88]
movups xmmword [ebp - 0xf4], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xf4]
movq qword [ebp - 0xe4], xmm0
push eax
push dword [ebp - 0xc4]
call fcn.004ae4b0
mov ecx, dword [ebp - 0xe0]
cmp ecx, 0xf
jbe 0x40b2ef
mov edx, dword [ebp - 0xf4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b2e5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b41c
push ecx
push edx
call fcn.004af678
add esp, 8
mov ecx, dword [ebp - 0xc8]
cmp ecx, 0xf
jbe 0x40b329
mov edx, dword [ebp - 0xdc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b31f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b41c
push ecx
push edx
call fcn.004af678
add esp, 8
mov ecx, dword [ebp - 0xf8]
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xc8], 0xf
mov byte [ebp - 0xdc], 0
cmp ecx, 0xf
jbe 0x40b37e
mov edx, dword [ebp - 0x10c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b374
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b41c
push ecx
push edx
call fcn.004af678
add esp, 8
mov ecx, dword [ebp - 0x54]
cmp ecx, 0xf
jbe 0x40b3ae
mov edx, dword [ebp - 0x68]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b3a4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b41c
push ecx
push edx
call fcn.004af678
add esp, 8
mov ecx, dword [ebp - 0x110]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0xf
mov byte [ebp - 0x68], 0
cmp ecx, 0xf
jbe 0x40b3f6
mov edx, dword [ebp - 0x124]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b3ec
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b41c
push ecx
push edx
call fcn.004af678
add esp, 8
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x40b42c
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b422
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40b422
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004af678
add esp, 8
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
cmp dword [ebp - 0x74], 0xf
lea ecx, [ebp - 0x88]
cmova ecx, dword [ebp - 0x88]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b450
sub ecx, edx
lea eax, [ecx + 1]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, dword [ebp - 0x74]
lea ecx, [ebp - 0x88]
cmp edx, 0xf
mov edi, eax
cmova ecx, dword [ebp - 0x88]
lea eax, [ecx + 1]
mov dword [ebp - 0x94], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b483
sub ecx, dword [ebp - 0x94]
lea eax, [ebp - 0x88]
cmp edx, 0xf
cmova eax, dword [ebp - 0x88]
push eax
lea eax, [ecx + 1]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp - 0x74]
cmp ecx, 0xf
jbe 0x40b505
mov edx, dword [ebp - 0x88]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b4fb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40b4fb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004af678
add esp, 8
mov ecx, dword [0x4bdda8]
mov eax, dword [sym.imp.MSIMG32.dll_GradientFill]
xor edx, edx
mov dword [ebp - 0xb0], eax
mov eax, dword [sym.imp.USER32.dll_keybd_event]
mov dword [ebp - 0xc0], edx
mov dword [ebp - 0xb4], eax
nop dword [eax]
mov eax, dword [esi]
lea edi, [ebp - 0xc4]
mov dword [ebp - 0xd0], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0xcc], eax
mov eax, dword [esi + 8]
xor esi, esi
mov dword [ebp - 0xc8], eax
lea eax, [ebp - 0xd0]
mov dword [ebp - 0x94], eax
xor eax, eax
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0x54], eax
mov eax, edi
sub eax, dword [ebp - 0x94]
sar eax, 2
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], esi
test eax, eax
je 0x40b5c6
cmp eax, 0x3fffffff
ja 0x40bd53
push eax
lea ecx, [ebp - 0x5c]
call fcn.004ae8d0
mov esi, dword [ebp - 0x5c]
lea eax, [ebp - 0xd0]
sub edi, eax
push edi
push eax
push esi
call sub.VCRUNTIME140.dll_memmove
mov ecx, dword [0x4bdda8]
add esp, 0xc
mov edx, dword [ebp - 0xc0]
sar edi, 2
lea eax, [esi + edi*4]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0xb8], eax
mov ax, word [ebp + 0x14]
cwde
mov edi, eax
shl edi, 4
sub edi, eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffffa
add edi, edi
add eax, edi
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x9c], eax
movsx eax, dx
imul edx, eax, 0x2e
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 0xc]
add eax, 0xda
add eax, edx
mov dword [ebp - 0xa8], edx
cmp ecx, dword [0x4bddb0]
jl 0x40b65c
cmp ecx, dword [0x4bddb8]
jg 0x40b65c
mov edx, dword [0x4bddac]
cmp edx, dword [0x4bddb4]
jl 0x40b65c
cmp edx, dword [0x4bddbc]
jg 0x40b65c
sub ecx, dword [0x4bddb0]
cmp ecx, eax
jl 0x40b65c
add eax, 0x29
cmp ecx, eax
jg 0x40b65c
sub edx, dword [0x4bddb4]
mov eax, dword [ebp - 0x9c]
cmp edx, eax
jl 0x40b65c
add eax, 0x14
mov dword [ebp - 0x9c], 1
cmp edx, eax
jle 0x40b666
mov dword [ebp - 0x9c], 0
call dword [ebp - 0xa0]
cmp eax, dword [0x4bdd94]
jne 0x40b798
cmp dword [ebp - 0x9c], 0
je 0x40b798
cmp dword [0x4bddc8], 0
jne 0x40b798
cmp dword [0x4bddcc], 0
jne 0x40b798
push 1
call dword [ebp - 0xac]
bt ax, 0xf
jae 0x40b6c9
push 0
push 0
push 0
push 0
push 4
call dword [ebp - 0xbc]
mov eax, dword [ebp - 0x98]
inc dword [esi + eax*4]
jmp 0x40b6f1
push 2
call dword [ebp - 0xac]
bt ax, 0xf
jae 0x40b6f1
push 0
push 0
push 0
push 0
push 0x10
call dword [ebp - 0xbc]
mov eax, dword [ebp - 0x98]
dec dword [esi + eax*4]
push 0x25
call dword [ebp - 0xac]
bt ax, 0xf
jae 0x40b71d
push 0
push 2
push 0
push 0x25
call dword [ebp - 0xb4]
mov eax, dword [ebp - 0x98]
add dword [esi + eax*4], 5
jmp 0x40b79e
push 0x26
call dword [ebp - 0xac]
bt ax, 0xf
jae 0x40b746
push 0
push 2
push 0
push 0x26
call dword [ebp - 0xb4]
mov eax, dword [ebp - 0x98]
add dword [esi + eax*4], 5
jmp 0x40b79e
push 0x27
call dword [ebp - 0xac]
bt ax, 0xf
jae 0x40b76f
push 0
push 2
push 0
push 0x27
call dword [ebp - 0xb4]
mov eax, dword [ebp - 0x98]
add dword [esi + eax*4], 0xfffffffb
jmp 0x40b79e
push 0x28
call dword [ebp - 0xac]
bt ax, 0xf
jae 0x40b798
push 0
push 2
push 0
push 0x28
call dword [ebp - 0xb4]
mov eax, dword [ebp - 0x98]
add dword [esi + eax*4], 0xfffffffb
jmp 0x40b79e
mov eax, dword [ebp - 0x98]
mov ecx, dword [esi + eax*4]
cmp ecx, 0xff
jl 0x40b7b2
mov dword [esi + eax*4], 0xff
jmp 0x40b7bd
test ecx, ecx
jg 0x40b7bd
mov dword [esi + eax*4], 0
mov ecx, dword [esi + 8]
sub esp, 0x10
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov edi, dword [ebp - 0xa4]
mov dword [edi], eax
mov eax, edi
mov edi, dword [ebp - 0x94]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0xa8]
mov dword [eax + 0xc], 0xff
add ecx, 0xda
mov eax, esp
push 0x14
push 0x29
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0xff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffffa
add eax, edi
push eax
mov eax, dword [ebp + 0xc]
add eax, ecx
push eax
call fcn.00407780
mov eax, dword [ebp + 0x10]
add edi, 0xfffffffb
mov ecx, dword [ebp - 0xa8]
add eax, edi
add ecx, 0xdb
mov dword [ebp - 0x14], 0x1e00
cmp dword [ebp - 0x9c], 0
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp + 0xc]
je 0x40b8e5
add eax, ecx
mov dword [ebp - 0x8c], 1
mov dword [ebp - 0xa8], eax
xor eax, eax
mov word [ebp - 0x22], ax
mov dword [ebp - 0x90], eax
mov eax, dword [0x4bdd8c]
cdq
and edx, 3
add eax, edx
sar eax, 2
movzx edi, al
mov eax, dword [0x4bdd88]
cdq
and edx, 3
add eax, edx
sar eax, 2
movzx ecx, al
mov eax, edi
shl eax, 8
or ecx, eax
mov eax, dword [0x4bdd84]
cdq
and edx, 3
shl ecx, 8
add eax, edx
mov edx, dword [ebp - 0x9c]
sar eax, 2
movzx eax, al
or ecx, eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x30], eax
add eax, 0x27
mov dword [ebp - 0x20], eax
lea eax, [edx + 0x12]
mov dword [ebp - 0x1c], eax
movzx eax, cl
shl ax, 8
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x90]
jmp 0x40b977
add eax, ecx
mov dword [ebp - 0x6c], 1
mov dword [ebp - 0xa8], eax
xor eax, eax
mov word [ebp - 0x22], ax
mov dword [ebp - 0x70], eax
mov eax, 0x66666667
imul dword [0x4bdd8c]
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
movzx edi, al
mov eax, 0x66666667
imul dword [0x4bdd88]
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
movzx ecx, al
mov eax, edi
shl eax, 8
or ecx, eax
mov eax, 0x66666667
imul dword [0x4bdd84]
shl ecx, 8
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x9c]
movzx eax, al
or ecx, eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x30], eax
add eax, 0x27
mov dword [ebp - 0x20], eax
lea eax, [edx + 0x12]
mov dword [ebp - 0x1c], eax
movzx eax, cl
shl ax, 8
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x70]
push 1
push 1
push eax
push 2
lea eax, [ebp - 0x30]
shl edi, 8
push eax
push dword [0x4bdda4]
and ecx, 0xff00
mov dword [ebp - 0x2c], edx
mov word [ebp - 0x26], cx
mov word [ebp - 0x24], di
mov dword [ebp - 0x18], 0x1e001e00
call dword [ebp - 0xb0]
test esi, esi
je 0x40b9f5
mov ecx, dword [ebp - 0xb8]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x40b9d6
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b41c
push ecx
push esi
call fcn.004af678
add esp, 8
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov edx, dword [ebp - 0xc0]
inc edx
mov dword [ebp - 0xc0], edx
cmp dx, 2
jg 0x40ba19
mov ecx, dword [0x4bdda8]
mov esi, dword [ebp - 0xa4]
jmp 0x40b530
mov edi, dword [ebp - 0xa4]
lea ecx, [ebp - 0x28]
sub esp, 0x10
mov eax, esp
mov dword [eax], 0x96
mov dword [eax + 4], 0x96
mov dword [eax + 8], 0x96
mov dword [eax + 0xc], 0xff
mov edx, dword [edi]
call fcn.00441520
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
mov edx, 0x4b26b8
push eax
call fcn.00441a10
mov eax, dword [ebp + 0x10]
add esp, 4
mov esi, dword [ebp - 0x94]
add eax, 0xfffffffe
add eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, 0xdf
push eax
call fcn.00407dc0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x40bab2
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40baa8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40baa8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004af678
add esp, 8
sub esp, 0x10
lea ecx, [ebp - 0x28]
mov eax, esp
mov dword [eax], 0x96
mov dword [eax + 4], 0x96
mov dword [eax + 8], 0x96
mov dword [eax + 0xc], 0xff
mov edx, dword [edi + 4]
call fcn.00441520
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
mov edx, 0x4b26bc
push eax
call fcn.00441a10
mov eax, dword [ebp + 0x10]
add esp, 4
add eax, 0xfffffffe
add eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, 0x10d
push eax
call fcn.00407dc0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x40bb40
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40bb36
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40bb36
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004af678
add esp, 8
sub esp, 0x10
lea ecx, [ebp - 0x28]
mov eax, esp
mov dword [eax], 0x96
mov dword [eax + 4], 0x96
mov dword [eax + 8], 0x96
mov dword [eax + 0xc], 0xff
mov edx, dword [edi + 8]
call fcn.00441520
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
mov edx, 0x4b26c0
push eax
call fcn.00441a10
mov eax, dword [ebp + 0x10]
add esp, 4
add eax, 0xfffffffe
add eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, 0x13b
push eax
call fcn.00407dc0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x40bbce
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40bbc4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40bbc4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004af678
add esp, 8
sub esp, 0x10
mov eax, esp
push 0x14
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0xff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffffa
add eax, esi
push 0x14
push eax
mov eax, dword [ebp + 0xc]
add eax, 0x168
push eax
call fcn.00407780
movups xmm1, xmmword [edi]
mov eax, dword [ebp + 0x10]
add eax, 0xfffffffb
mov edi, dword [ebp + 0xc]
add eax, esi
mov dword [ebp - 0x6c], 1
mov dword [ebp - 0xa0], eax
movaps xmm0, xmm1
xor eax, eax
psrldq xmm0, 8
mov word [ebp - 0x42], ax
add edi, 0x169
mov word [ebp - 0x32], ax
mov dword [ebp - 0x70], eax
movd eax, xmm0
movaps xmm0, xmm1
psrldq xmm0, 4
mov dword [ebp - 0x50], edi
movzx ecx, al
shl ecx, 8
movd eax, xmm0
movzx eax, al
or ecx, eax
movd eax, xmm1
shl ecx, 8
movzx eax, al
or ecx, eax
mov dword [ebp - 0x94], ecx
mov ecx, dword [ebp - 0xa4]
mov eax, dword [ecx + 8]
cdq
and edx, 3
add eax, edx
sar eax, 2
movzx esi, al
mov eax, dword [ecx + 4]
cdq
and edx, 3
add eax, edx
sar eax, 2
movzx ecx, al
mov eax, esi
shl eax, 8
or ecx, eax
mov eax, dword [ebp - 0xa4]
shl ecx, 8
mov eax, dword [eax]
cdq
and edx, 3
add eax, edx
mov edx, dword [ebp - 0xa0]
sar eax, 2
movzx eax, al
or ecx, eax
mov dword [ebp - 0x4c], edx
lea eax, [edi + 0x12]
mov dword [ebp - 0x40], eax
lea eax, [edx + 0x12]
mov edx, dword [ebp - 0x94]
mov dword [ebp - 0x3c], eax
movzx eax, dl
shl ax, 8
mov word [ebp - 0x48], ax
mov eax, edx
and eax, 0xff00
mov word [ebp - 0x46], ax
movzx eax, cl
and ecx, 0xff00
push 1
shl ax, 8
push 1
mov word [ebp - 0x38], ax
lea eax, [ebp - 0x70]
push eax
push 2
lea eax, [ebp - 0x50]
shr edx, 0x10
push eax
push dword [0x4bdda4]
shl edx, 8
shl esi, 8
mov word [ebp - 0x44], dx
mov word [ebp - 0x36], cx
mov word [ebp - 0x34], si
call dword [ebp - 0xb0]
mov eax, dword [ebp - 0xa4]
movups xmm0, xmmword [eax]
mov eax, dword [ebp - 0xc4]
movups xmmword [eax], xmm0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004af21a
mov esp, ebp
pop ebp
ret 0x14
call fcn.004ae7a0
int3