Function at 0x405830
Capabilities:
Encode data using xor
Terminate process

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46dcf1
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x148
mov eax, dword [0x4843a8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0xbc], 0
call fcn.004041d0
mov ecx, eax
mov dword [ebp - 4], 0
mov esi, dword [ecx + 0x14]
mov eax, esi
mov edx, dword [ecx + 0x10]
sub eax, edx
cmp eax, 1
jb 0x4058b5
lea eax, [edx + 1]
mov dword [ecx + 0x10], eax
mov eax, ecx
cmp esi, 0x10
jb 0x4058ad
mov eax, dword [ecx]
mov word [eax + edx], 0x5c
jmp 0x4058d2
push 1
push 0x47d38c
mov byte [ebp - 0xbc], 0
push dword [ebp - 0xbc]
push 1
call fcn.0040bfd0
mov ecx, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
movups xmm0, xmmword [ecx]
movups xmmword [ebp - 0x30], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [ebp - 0x20], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x1c]
mov eax, edx
mov ecx, dword [ebp - 0x20]
sub eax, ecx
push 0xa
push 0x47d380
cmp eax, 0xa
jb 0x405947
cmp edx, 0x10
lea esi, [ebp - 0x30]
lea eax, [ecx + 0xa]
cmovae esi, dword [ebp - 0x30]
add esi, ecx
mov dword [ebp - 0x20], eax
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 0xa], 0
lea eax, [ebp - 0x30]
jmp 0x40595e
mov byte [ebp - 0xbc], 0
lea ecx, [ebp - 0x30]
push dword [ebp - 0xbc]
push 0xa
call fcn.0040bfd0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xb8], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xa8], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x1c]
cmp edx, 0x10
jb 0x4059ba
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4059b0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4059fc
push edx
push ecx
call fcn.0046c3ad
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0xdc]
cmp edx, 0x10
jb 0x405a0c
mov ecx, dword [ebp - 0xf0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405a02
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x405a02
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0046c3ad
add esp, 8
sub esp, 0x18
mov dword [ebp - 0xe0], 0
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xdc], 0xf
mov ecx, esp
mov byte [ebp - 0xf0], 0
push eax
call fcn.00409540
lea ecx, [ebp - 0x48]
call fcn.00404aa0
add esp, 0x18
cmp dword [ebp - 0x34], 0x10
lea eax, [ebp - 0x48]
mov edx, dword [ebp - 0x48]
lea ecx, [ebp - 0x48]
cmovae eax, edx
lea edi, [ebp - 0x48]
mov dword [ebp - 0xbc], eax
cmovae ecx, edx
mov eax, dword [ebp - 0x38]
add eax, ecx
cmp dword [ebp - 0x34], 0x10
mov dword [ebp - 0xc4], eax
cmovae edi, edx
cmp edi, eax
je 0x405a99
mov esi, dword [ebp - 0xbc]
sub esi, edi
nop dword [eax]
movzx eax, byte [edi]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov byte [edi + esi], al
add esp, 4
inc edi
cmp edi, dword [ebp - 0xc4]
jne 0x405a80
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x20]
push 0
mov byte [ebp - 0x28], 0
call fcn.0040b0f0
mov byte [ebp - 4], 7
mov edi, 4
movups xmm0, xmmword [str.dugdwk]
mov ax, word [0x47e64c]
mov esi, dword [0x4e3580]
mov word [ebp - 0xf4], ax
lea ecx, [edi + 0x1b]
movups xmmword [ebp - 0x10c], xmm0
movq xmm0, qword [0x47e644]
movq qword [ebp - 0xfc], xmm0
test ah, ah
je 0x405c77
xor edx, edx
mov dword [ebp - 0xbc], edx
cmp esi, 2
jl 0x405c40
movaps xmm0, xmmword [str.3333333333333333]
movaps xmm4, xmmword [0x47ed90]
movaps xmm3, xmmword [0x47ee30]
movaps xmm6, xmmword [0x47edb0]
movd xmm7, ecx
movaps xmmword [ebp - 0xf0], xmm0
mov ecx, dword [ebp - 0xf0]
movd xmm5, edi
movd xmm0, edx
lea eax, [edx + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x47ee10]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [ebp + edx - 0x10c]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [ebp + edx - 0x10c], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x47ee10]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [ebp + edx - 0x108]
pxor xmm1, xmm0
movd dword [ebp + edx - 0x108], xmm1
add edx, 8
cmp edx, 0x18
jl 0x405b32
mov dword [ebp - 0xbc], edx
cmp edx, 0x1a
jge 0x405c77
mov eax, 0x5397829d
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0xbc]
movsx eax, al
mov cl, dl
imul eax, eax, 0x31
sub cl, al
add cl, 0x33
xor byte [ebp + edx - 0x10c], cl
inc edx
mov dword [ebp - 0xbc], edx
cmp edx, 0x1a
jl 0x405c40
mov eax, dword [0x47e588]
mov dword [ebp - 0xc4], eax
mov ax, word [0x47e58c]
mov word [ebp - 0xc0], ax
test ah, ah
je 0x405cd0
xor edx, edx
mov dword [ebp - 0xbc], edx
nop dword [eax + eax]
mov eax, 0x5397829d
mul edx
shr edx, 4
movsx eax, dl
mov edx, dword [ebp - 0xbc]
mov cl, dl
imul eax, eax, 0x31
sub cl, al
add cl, 0x33
xor byte [ebp + edx - 0xc4], cl
inc edx
mov dword [ebp - 0xbc], edx
cmp edx, 6
jl 0x405ca0
push 0
mov dword [ebp - 0x138], 0
lea ecx, [ebp - 0x138]
push 0x47d228
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0xf
mov byte [ebp - 0x138], 0
call fcn.00401be0
lea eax, [ebp - 0xc4]
mov byte [ebp - 4], 8
push eax
lea edx, [ebp - 0x138]
lea ecx, [ebp - 0x150]
call fcn.0040b720
sub esp, 0x14
mov byte [ebp - 4], 9
lea edx, [ebp - 0x10c]
mov dword [ebp - 0xc4], esp
mov ecx, esp
push edx
mov edx, eax
call fcn.0040b720
add esp, 4
mov byte [ebp - 4], 0xa
xor edx, edx
mov dword [ebp - 0xbc], edx
movups xmm0, xmmword [str.__AFD]
movups xmmword [ebp - 0x120], xmm0
movups xmm0, xmmword [0x47e600]
movups xmmword [ebp - 0x110], xmm0
movups xmm0, xmmword [0x47e610]
movups xmmword [ebp - 0x100], xmm0
cmp esi, 2
jl 0x405ec5
movaps xmm0, xmmword [str.3333333333333333]
mov eax, 0x1f
movaps xmm4, xmmword [0x47ed90]
xor ecx, ecx
movaps xmm3, xmmword [0x47ee30]
movaps xmm6, xmmword [0x47edb0]
movaps xmmword [ebp - 0xf0], xmm0
mov edx, dword [ebp - 0xf0]
movd xmm5, edi
movd xmm7, eax
nop word [eax + eax]
movd xmm0, ecx
lea eax, [ecx + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x47ee10]
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [ebp + ecx - 0x120]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [ebp + ecx - 0x120], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x47ee10]
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [ebp + ecx - 0x11c]
pxor xmm1, xmm0
movd dword [ebp + ecx - 0x11c], xmm1
add ecx, 8
cmp ecx, 0x30
jl 0x405dc0
jmp 0x405ef5
mov eax, 0x5397829d
mul edx
shr edx, 4
movsx eax, dl
mov edx, dword [ebp - 0xbc]
mov cl, dl
imul eax, eax, 0x31
sub cl, al
add cl, 0x33
xor byte [ebp + edx - 0x120], cl
inc edx
mov dword [ebp - 0xbc], edx
cmp edx, 0x30
jl 0x405ec5
sub esp, 0x18
lea ecx, [ebp - 0x120]
mov edx, esp
lea edi, [ecx + 1]
mov dword [edx], 0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0xf
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405f17
sub ecx, edi
lea eax, [ebp - 0x120]
push ecx
push eax
mov ecx, edx
call fcn.00401be0
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 9
call fcn.00404320
add esp, 0x30
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x13c]
cmp edx, 0x10
jb 0x405f78
mov ecx, dword [ebp - 0x150]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405f6e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405fc3
push edx
push ecx
call fcn.0046c3ad
add esp, 8
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], 0xf
mov byte [ebp - 0x150], 0
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0x124]
cmp edx, 0x10
jb 0x405fd3
mov ecx, dword [ebp - 0x138]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405fc9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x405fc9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0046c3ad
add esp, 8
push 0
push 1
sub esp, 0x28
mov dword [ebp - 0x128], 0
mov eax, esp
mov dword [ebp - 0x124], 0xf
lea edx, [ebp - 0x60]
mov byte [ebp - 0x138], 0
lea ecx, [ebp - 0x88]
mov dword [eax + 0x24], 0
call fcn.0040b810
add esp, 0x30
push str.success
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0xe
call fcn.0040b930
xor edx, edx
cmp byte [eax], 4
lea ecx, [eax + 8]
cmovne ecx, edx
cmp byte [ecx], dl
jne 0x4061cf
mov eax, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov dword [ebp - 0xc4], eax
lea eax, [ebp - 0xe8]
push eax
call fcn.00406990
mov edi, eax
cmp byte [edi + 0xc], dl
je 0x40618d
xor ecx, ecx
cmp esi, 2
jl 0x406164
movaps xmm2, xmmword [0x47ed90]
mov eax, 4
movaps xmm4, xmmword [0x47ee30]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
mov ecx, 8
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
movd xmm5, eax
mov eax, 0x1f
psrad xmm1, xmm5
movaps xmm0, xmm1
movd xmm6, eax
mov eax, dword [str.3333333333333333]
psrld xmm0, xmm6
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x47edb0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x47eda0]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x47ee10]
packuswb xmm1, xmm1
movd xmm0, eax
paddb xmm1, xmm0
movd xmm0, dword [edi]
pxor xmm1, xmm0
movaps xmm0, xmm2
movd dword [edi], xmm1
movaps xmm1, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm6
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x47edb0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x47ee10]
packuswb xmm1, xmm1
movd xmm0, eax
paddb xmm1, xmm0
movd xmm0, dword [edi + 4]
pxor xmm1, xmm0
movd dword [edi + 4], xmm1
mov eax, 0x5397829d
lea esi, [ecx + edi]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dl, cl
movsx eax, al
inc ecx
imul eax, eax, 0x31
sub dl, al
add dl, 0x33
xor byte [esi], dl
cmp ecx, 0xd
jl 0x406164
mov ecx, dword [ebp - 0xc4]
mov edx, edi
call fcn.0040ba20
push str.message
lea ecx, [ebp - 0x88]
mov esi, eax
call fcn.0040b930
mov edx, eax
mov ecx, esi
call fcn.004091f0
mov ecx, eax
call fcn.0040bc50
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0xfffffffffffffffe
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push str.hash
lea ecx, [ebp - 0x88]
call fcn.0040b930
mov byte [ebp - 4], 0xf
mov esi, 0xf
cmp byte [eax], 3
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], esi
mov byte [ebp - 0xa0], 0
mov dword [ebp - 0xbc], 0xb
jne 0x406227
mov eax, dword [eax + 8]
lea ecx, [ebp - 0xa0]
cmp ecx, eax
je 0x406247
jmp 0x406229
xor eax, eax
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x406234
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0xa0]
call fcn.00401be0
mov esi, dword [ebp - 0x8c]
push str.link
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], 0x10
call fcn.0040b930
mov byte [ebp - 4], 0x11
mov edi, 0xf
cmp byte [eax], 3
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], edi
mov byte [ebp - 0x78], 0
mov dword [ebp - 0xbc], 0x27
jne 0x406297
mov eax, dword [eax + 8]
lea ecx, [ebp - 0x78]
cmp ecx, eax
je 0x4062b1
jmp 0x406299
xor eax, eax
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x4062a4
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x78]
call fcn.00401be0
mov edi, dword [ebp - 0x64]
lea edx, [ebp - 0x48]
mov dword [ebp - 4], 0x12
lea ecx, [ebp - 0xa0]
call fcn.0040be60
test al, al
je 0x406840
movups xmm0, xmmword [0x47e4a0]
mov ax, word [0x47e4b8]
mov word [ebp - 0xf4], ax
movups xmmword [ebp - 0x10c], xmm0
movq xmm0, qword [0x47e4b0]
movq qword [ebp - 0xfc], xmm0
test ah, ah
je 0x40648b
xor ecx, ecx
cmp dword [0x4e3580], 2
jl 0x406460
movaps xmm0, xmmword [str.3333333333333333]
mov eax, 4
movaps xmm4, xmmword [0x47ed90]
movaps xmm3, xmmword [0x47ee30]
movaps xmm6, xmmword [0x47edb0]
movd xmm5, eax
mov eax, 0x1f
movaps xmmword [ebp - 0xf0], xmm0
mov edx, dword [ebp - 0xf0]
movd xmm7, eax
nop dword [eax + eax]
movd xmm0, ecx
lea eax, [ecx + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x47ee10]
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [ebp + ecx - 0x10c]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [ebp + ecx - 0x10c], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x47ee10]
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [ebp + ecx - 0x108]
pxor xmm1, xmm0
movd dword [ebp + ecx - 0x108], xmm1
add ecx, 8
cmp ecx, 0x18
jl 0x406350
cmp ecx, 0x1a
jge 0x40648b
nop dword [eax + eax]
mov eax, 0x5397829d
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dl, cl
movsx eax, al
imul eax, eax, 0x31
sub dl, al
add dl, 0x33
xor byte [ebp + ecx - 0x10c], dl
inc ecx
cmp ecx, 0x1a
jl 0x406460
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea edx, [ebp - 0x10c]
call fcn.0040ba20
sub esp, 0x18
lea eax, [ebp - 0xb8]
mov ecx, esp
mov dword [ebp - 0xc4], esp
push eax
call fcn.00409540
sub esp, 0x18
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0x78]
mov ecx, esp
push eax
call fcn.00409540
mov byte [ebp - 4], 0x12
call fcn.004052e0
add esp, 0x30
mov dword [ebp - 0xbc], eax
cmp eax, 1
je 0x4066dc
mov eax, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov dword [ebp - 0xc4], eax
lea eax, [ebp - 0x138]
push eax
call fcn.004069c0
mov edi, eax
cmp byte [edi + 0x16], 0
je 0x40668a
xor ecx, ecx
cmp dword [0x4e3580], 2
jl 0x406661
movaps xmm0, xmmword [str.3333333333333333]
mov eax, 4
movaps xmm4, xmmword [0x47ed90]
mov esi, 4
movaps xmm3, xmmword [0x47ee30]
mov edx, edi
movaps xmm6, xmmword [0x47edb0]
sub esi, edi
movd xmm5, eax
mov eax, 0x1f
movaps xmmword [ebp - 0xf0], xmm0
movd xmm7, eax
mov eax, dword [ebp - 0xf0]
nop word [eax + eax]
movd xmm0, ecx
add ecx, 8
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x47ee10]
packuswb xmm1, xmm1
movd xmm0, eax
lea eax, [esi + edx]
lea edx, [edx + 8]
paddb xmm1, xmm0
movd xmm0, dword [edx - 8]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [edx - 8], xmm1
paddd xmm2, xmm4
mov eax, dword [ebp - 0xf0]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x47ee10]
packuswb xmm1, xmm1
movd xmm0, eax
paddb xmm1, xmm0
movd xmm0, dword [edx - 4]
pxor xmm1, xmm0
movd dword [edx - 4], xmm1
cmp ecx, 0x10
jl 0x406560
cmp ecx, 0x17
jge 0x40668a
mov eax, 0x5397829d
lea esi, [ecx + edi]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dl, cl
movsx eax, al
inc ecx
imul eax, eax, 0x31
sub dl, al
add dl, 0x33
xor byte [esi], dl
cmp ecx, 0x17
jl 0x406661
mov ecx, dword [ebp - 0xc4]
mov edx, edi
call fcn.0040ba20
mov edx, dword [ebp - 0xbc]
lea ecx, [ebp - 0x150]
mov esi, eax
call fcn.00402a00
mov edx, eax
mov byte [ebp - 4], 0x14
mov ecx, esi
call fcn.00401d20
mov ecx, eax
call fcn.0040bc50
lea ecx, [ebp - 0x150]
call fcn.00401b50
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0xfffffffffffffffe
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov edx, dword [ebp - 0x64]
cmp edx, 0x10
jb 0x406710
mov ecx, dword [ebp - 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406706
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40697a
push edx
push ecx
call fcn.0046c3ad
add esp, 8
cmp esi, 0x10
jb 0x406744
mov ecx, dword [ebp - 0xa0]
inc esi
mov eax, ecx
cmp esi, 0x1000
jb 0x40673a
mov ecx, dword [ecx - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40697a
push esi
push ecx
call fcn.0046c3ad
add esp, 8
lea ecx, [ebp - 0x88]
call fcn.004094a0
mov edx, dword [ebp - 0x4c]
cmp edx, 0x10
jb 0x406783
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406779
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40697a
push edx
push ecx
call fcn.0046c3ad
add esp, 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
call fcn.004094a0
mov edx, dword [ebp - 0x34]
cmp edx, 0x10
jb 0x4067d1
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4067c7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40697a
push edx
push ecx
call fcn.0046c3ad
add esp, 8
mov edx, dword [ebp - 0xa4]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
cmp edx, 0x10
jb 0x40681d
mov ecx, dword [ebp - 0xb8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406813
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40697a
push edx
push ecx
call fcn.0046c3ad
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046c172
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
cmp edi, 0x10
jb 0x406873
mov ecx, dword [ebp - 0x78]
lea edx, [edi + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x406869
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40697a
push edx
push ecx
call fcn.0046c3ad
add esp, 8
cmp esi, 0x10
jb 0x4068a7
mov ecx, dword [ebp - 0xa0]
inc esi
mov eax, ecx
cmp esi, 0x1000
jb 0x40689d
mov ecx, dword [ecx - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40697a
push esi
push ecx
call fcn.0046c3ad
add esp, 8
lea ecx, [ebp - 0x88]
call fcn.004094a0
mov edx, dword [ebp - 0x4c]
cmp edx, 0x10
jb 0x4068e6
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4068dc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40697a
push edx
push ecx
call fcn.0046c3ad
add esp, 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
call fcn.004094a0
mov edx, dword [ebp - 0x34]
cmp edx, 0x10
jb 0x406930
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406926
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40697a
push edx
push ecx
call fcn.0046c3ad
add esp, 8
mov edx, dword [ebp - 0xa4]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
cmp edx, 0x10
jb 0x40681d
mov ecx, dword [ebp - 0xb8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406813
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x406813
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3