Function at 0x405520
Capabilities:
Authenticate hmac
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 0x46d9d1
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x148
mov eax, dword [0x4833a8]
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 - 0xdc]
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 0x4055a5
lea eax, [edx + 1]
mov dword [ecx + 0x10], eax
mov eax, ecx
cmp esi, 0x10
jb 0x40559d
mov eax, dword [ecx]
mov word [eax + edx], 0x5c
jmp 0x4055c2
push 1
push 0x47d37c
mov byte [ebp - 0xbc], 0
push dword [ebp - 0xbc]
push 1
call fcn.0040bd10
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 0x47d370
cmp eax, 0xa
jb 0x405637
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 0x40564e
mov byte [ebp - 0xbc], 0
lea ecx, [ebp - 0x30]
push dword [ebp - 0xbc]
push 0xa
call fcn.0040bd10
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 0x4056aa
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4056a0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4056ec
push edx
push ecx
call fcn.0046c08d
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 - 0xc8]
cmp edx, 0x10
jb 0x4056fc
mov ecx, dword [ebp - 0xdc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4056f2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4056f2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0046c08d
add esp, 8
sub esp, 0x18
mov dword [ebp - 0xcc], 0
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xc8], 0xf
mov ecx, esp
mov byte [ebp - 0xdc], 0
push eax
call fcn.004092d0
lea ecx, [ebp - 0x48]
call fcn.00404790
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 0x405789
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 0x405770
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x20]
push 0
mov byte [ebp - 0x28], 0
call fcn.0040ae70
mov byte [ebp - 4], 7
xor edx, edx
mov eax, dword [0x47e780]
movups xmm0, xmmword [0x47e770]
mov esi, dword [0x4e2580]
mov dword [ebp - 0x118], eax
lea edi, [edx + 4]
mov ax, word [0x47e784]
mov word [ebp - 0x114], ax
mov al, byte [0x47e786]
mov byte [ebp - 0x112], al
lea eax, [edx + 0x1f]
mov dword [ebp - 0xbc], edx
movups xmmword [ebp - 0x128], xmm0
cmp esi, 2
jl 0x405930
movaps xmm0, xmmword [str.9999999999999999]
movaps xmm4, xmmword [0x47ece0]
movaps xmm3, xmmword [0x47ed80]
movaps xmm6, xmmword [0x47ed00]
movaps xmmword [ebp - 0x110], xmm0
mov ecx, dword [ebp - 0x110]
movd xmm5, edi
movd xmm7, eax
nop
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 [0x47ed60]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [ebp + edx - 0x128]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [ebp + edx - 0x128], 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 [0x47ed60]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [ebp + edx - 0x124]
pxor xmm1, xmm0
movd dword [ebp + edx - 0x124], xmm1
add edx, 8
cmp edx, 0x10
jl 0x405820
mov dword [ebp - 0xbc], edx
cmp edx, 0x17
jge 0x405967
nop
mov eax, 0x4bda12f7
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, 0x36
sub cl, al
add cl, 0x39
xor byte [ebp + edx - 0x128], cl
inc edx
mov dword [ebp - 0xbc], edx
cmp edx, 0x17
jl 0x405930
mov eax, dword [str._SWY]
mov dword [ebp - 0xc4], eax
mov ax, word [0x47e698]
mov word [ebp - 0xc0], ax
test ah, ah
je 0x4059cc
xor edx, edx
mov dword [ebp - 0xbc], edx
nop dword [eax + eax]
mov eax, 0x2f684bdb
mul edx
mov eax, dword [ebp - 0xbc]
sub eax, edx
shr eax, 1
add eax, edx
mov edx, dword [ebp - 0xbc]
shr eax, 5
mov cl, dl
movsx eax, al
imul eax, eax, 0x36
sub cl, al
add cl, 0x39
xor byte [ebp + edx - 0xc4], cl
inc edx
mov dword [ebp - 0xbc], edx
cmp edx, 6
jl 0x405990
push 0
mov dword [ebp - 0xdc], 0
lea ecx, [ebp - 0xdc]
push 0x47d228
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xc8], 0xf
mov byte [ebp - 0xdc], 0
call fcn.00401be0
lea eax, [ebp - 0xc4]
mov byte [ebp - 4], 8
push eax
lea edx, [ebp - 0xdc]
lea ecx, [ebp - 0xf8]
call fcn.0040b4a0
sub esp, 0x14
mov byte [ebp - 4], 9
lea edx, [ebp - 0x128]
mov dword [ebp - 0xc4], esp
mov ecx, esp
push edx
mov edx, eax
call fcn.0040b4a0
add esp, 4
mov byte [ebp - 4], 0xa
xor edx, edx
mov dword [ebp - 0xbc], edx
movups xmm0, xmmword [str.QNOLN]
movups xmmword [ebp - 0x158], xmm0
movups xmm0, xmmword [0x47e750]
movups xmmword [ebp - 0x148], xmm0
movups xmm0, xmmword [0x47e760]
movups xmmword [ebp - 0x138], xmm0
cmp esi, 2
jl 0x405bd0
movaps xmm0, xmmword [str.9999999999999999]
mov eax, 0x1f
movaps xmm4, xmmword [0x47ece0]
xor ecx, ecx
movaps xmm3, xmmword [0x47ed80]
movaps xmm6, xmmword [0x47ed00]
movaps xmmword [ebp - 0x110], xmm0
mov edx, dword [ebp - 0x110]
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 [0x47ed60]
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [ebp + ecx - 0x158]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [ebp + ecx - 0x158], 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 [0x47ed60]
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [ebp + ecx - 0x154]
pxor xmm1, xmm0
movd dword [ebp + ecx - 0x154], xmm1
add ecx, 8
cmp ecx, 0x30
jl 0x405ac0
jmp 0x405c0c
mov eax, 0x2f684bdb
mul edx
mov eax, dword [ebp - 0xbc]
sub eax, edx
shr eax, 1
add eax, edx
mov edx, dword [ebp - 0xbc]
shr eax, 5
mov cl, dl
movsx eax, al
imul eax, eax, 0x36
sub cl, al
add cl, 0x39
xor byte [ebp + edx - 0x158], cl
inc edx
mov dword [ebp - 0xbc], edx
cmp edx, 0x30
jl 0x405bd0
sub esp, 0x18
lea ecx, [ebp - 0x158]
mov edx, esp
lea edi, [ecx + 1]
mov dword [edx], 0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0xf
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405c30
sub ecx, edi
lea eax, [ebp - 0x158]
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 - 0xe4]
cmp edx, 0x10
jb 0x405c91
mov ecx, dword [ebp - 0xf8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405c87
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405cdc
push edx
push ecx
call fcn.0046c08d
add esp, 8
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0xf
mov byte [ebp - 0xf8], 0
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0xc8]
cmp edx, 0x10
jb 0x405cec
mov ecx, dword [ebp - 0xdc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405ce2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x405ce2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0046c08d
add esp, 8
push 0
push 1
sub esp, 0x28
mov dword [ebp - 0xcc], 0
mov eax, esp
mov dword [ebp - 0xc8], 0xf
lea edx, [ebp - 0x60]
mov byte [ebp - 0xdc], 0
lea ecx, [ebp - 0x88]
mov dword [eax + 0x24], 0
call fcn.0040b550
add esp, 0x30
push str.success
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0xe
call fcn.0040b670
xor edx, edx
cmp byte [eax], 4
lea ecx, [eax + 8]
cmovne ecx, edx
cmp byte [ecx], dl
jne 0x405eeb
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 - 0x110]
push eax
call fcn.004066b0
mov edi, eax
cmp byte [edi + 0xc], dl
je 0x405ea9
xor ecx, ecx
cmp esi, 2
jl 0x405e80
movaps xmm2, xmmword [0x47ece0]
mov eax, 4
movaps xmm4, xmmword [0x47ed80]
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.9999999999999999]
psrld xmm0, xmm6
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x47ed00]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x47ecf0]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x47ed60]
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 [0x47ed00]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x47ed60]
packuswb xmm1, xmm1
movd xmm0, eax
paddb xmm1, xmm0
movd xmm0, dword [edi + 4]
pxor xmm1, xmm0
movd dword [edi + 4], xmm1
nop dword [eax]
mov eax, 0x4bda12f7
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, 0x36
sub dl, al
add dl, 0x39
xor byte [esi], dl
cmp ecx, 0xd
jl 0x405e80
mov ecx, dword [ebp - 0xc4]
mov edx, edi
call fcn.0040b760
push str.message
lea ecx, [ebp - 0x88]
mov esi, eax
call fcn.0040b670
mov edx, eax
mov ecx, esi
call fcn.00408f80
mov ecx, eax
call fcn.0040b990
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.0040b670
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 0x405f43
mov eax, dword [eax + 8]
lea ecx, [ebp - 0xa0]
cmp ecx, eax
je 0x405f63
jmp 0x405f45
xor eax, eax
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x405f50
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.0040b670
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 0x405fb3
mov eax, dword [eax + 8]
lea ecx, [ebp - 0x78]
cmp ecx, eax
je 0x405fcd
jmp 0x405fb5
xor eax, eax
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x405fc0
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.0040bba0
test al, al
je 0x406560
movups xmm0, xmmword [0x47e630]
mov ax, word [0x47e648]
mov word [ebp - 0xe0], ax
movups xmmword [ebp - 0xf8], xmm0
movq xmm0, qword [0x47e640]
movq qword [ebp - 0xe8], xmm0
test ah, ah
je 0x4061ab
xor ecx, ecx
cmp dword [0x4e2580], 2
jl 0x406180
movaps xmm0, xmmword [str.9999999999999999]
mov eax, 4
movaps xmm4, xmmword [0x47ece0]
movaps xmm3, xmmword [0x47ed80]
movaps xmm6, xmmword [0x47ed00]
movd xmm5, eax
mov eax, 0x1f
movaps xmmword [ebp - 0x110], xmm0
mov edx, dword [ebp - 0x110]
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 [0x47ed60]
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [ebp + ecx - 0xf8]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [ebp + ecx - 0xf8], 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 [0x47ed60]
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [ebp + ecx - 0xf4]
pxor xmm1, xmm0
movd dword [ebp + ecx - 0xf4], xmm1
add ecx, 8
cmp ecx, 0x18
jl 0x406070
cmp ecx, 0x1a
jge 0x4061ab
nop dword [eax + eax]
mov eax, 0x4bda12f7
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dl, cl
movsx eax, al
imul eax, eax, 0x36
sub dl, al
add dl, 0x39
xor byte [ebp + ecx - 0xf8], dl
inc ecx
cmp ecx, 0x1a
jl 0x406180
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea edx, [ebp - 0xf8]
call fcn.0040b760
sub esp, 0x18
lea eax, [ebp - 0xb8]
mov ecx, esp
mov dword [ebp - 0xc4], esp
push eax
call fcn.004092d0
sub esp, 0x18
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0x78]
mov ecx, esp
push eax
call fcn.004092d0
mov byte [ebp - 4], 0x12
call fcn.00404fd0
add esp, 0x30
mov dword [ebp - 0xbc], eax
cmp eax, 1
je 0x4063fc
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 - 0x128]
push eax
call fcn.004066e0
mov edi, eax
cmp byte [edi + 0x16], 0
je 0x4063aa
xor ecx, ecx
cmp dword [0x4e2580], 2
jl 0x406381
movaps xmm0, xmmword [str.9999999999999999]
mov eax, 4
movaps xmm4, xmmword [0x47ece0]
mov esi, 4
movaps xmm3, xmmword [0x47ed80]
mov edx, edi
movaps xmm6, xmmword [0x47ed00]
sub esi, edi
movd xmm5, eax
mov eax, 0x1f
movaps xmmword [ebp - 0x110], xmm0
movd xmm7, eax
mov eax, dword [ebp - 0x110]
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 [0x47ed60]
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 - 0x110]
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 [0x47ed60]
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 0x406280
cmp ecx, 0x17
jge 0x4063aa
mov eax, 0x4bda12f7
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, 0x36
sub dl, al
add dl, 0x39
xor byte [esi], dl
cmp ecx, 0x17
jl 0x406381
mov ecx, dword [ebp - 0xc4]
mov edx, edi
call fcn.0040b760
mov edx, dword [ebp - 0xbc]
lea ecx, [ebp - 0xf8]
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.0040b990
lea ecx, [ebp - 0xf8]
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 0x406430
mov ecx, dword [ebp - 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406426
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40669a
push edx
push ecx
call fcn.0046c08d
add esp, 8
cmp esi, 0x10
jb 0x406464
mov ecx, dword [ebp - 0xa0]
inc esi
mov eax, ecx
cmp esi, 0x1000
jb 0x40645a
mov ecx, dword [ecx - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40669a
push esi
push ecx
call fcn.0046c08d
add esp, 8
lea ecx, [ebp - 0x88]
call fcn.00409230
mov edx, dword [ebp - 0x4c]
cmp edx, 0x10
jb 0x4064a3
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406499
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40669a
push edx
push ecx
call fcn.0046c08d
add esp, 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
call fcn.00409230
mov edx, dword [ebp - 0x34]
cmp edx, 0x10
jb 0x4064f1
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4064e7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40669a
push edx
push ecx
call fcn.0046c08d
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 0x40653d
mov ecx, dword [ebp - 0xb8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406533
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40669a
push edx
push ecx
call fcn.0046c08d
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.0046be52
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
cmp edi, 0x10
jb 0x406593
mov ecx, dword [ebp - 0x78]
lea edx, [edi + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x406589
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40669a
push edx
push ecx
call fcn.0046c08d
add esp, 8
cmp esi, 0x10
jb 0x4065c7
mov ecx, dword [ebp - 0xa0]
inc esi
mov eax, ecx
cmp esi, 0x1000
jb 0x4065bd
mov ecx, dword [ecx - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40669a
push esi
push ecx
call fcn.0046c08d
add esp, 8
lea ecx, [ebp - 0x88]
call fcn.00409230
mov edx, dword [ebp - 0x4c]
cmp edx, 0x10
jb 0x406606
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4065fc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40669a
push edx
push ecx
call fcn.0046c08d
add esp, 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
call fcn.00409230
mov edx, dword [ebp - 0x34]
cmp edx, 0x10
jb 0x406650
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406646
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40669a
push edx
push ecx
call fcn.0046c08d
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 0x40653d
mov ecx, dword [ebp - 0xb8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406533
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x406533
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3