Function at 0x4058d0
Capabilities:
Contain obfuscated stackstrings
Create thread

Disassembly:
mov r11, rsp
sub rsp, 0x418
mov qword [rsp + 0xd8], 0xfffffffffffffffe
mov qword [r11 + 0x20], rbx
mov qword [r11 - 8], rbp
mov qword [r11 - 0x10], rsi
mov qword [r11 - 0x18], rdi
mov qword [r11 - 0x20], r12
mov qword [r11 - 0x28], r13
mov qword [r11 - 0x30], r14
mov qword [r11 - 0x38], r15
mov rax, qword [0x0049c3d0]
xor rax, rsp
mov qword [rsp + 0x3d0], rax
mov r14, r8
mov rbx, rdx
mov r12, rcx
mov qword [r11 - 0x348], rcx
mov qword [r11 - 0x2c0], r8
xor r15d, r15d
mov dword [r11 - 0x374], r15d
mov byte [rsp + 0x30], r15b
lea r8, [rsp + 0x30]
mov edx, 0x5dc
call fcn.0040aa10
mov dword [rsp + 0xa4], 1
mov qword [rsp + 0xe0], r15
xor eax, eax
mov qword [rsp + 0xe8], rax
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0xf8], rax
mov qword [rsp + 0x120], 7
mov qword [rsp + 0x118], r15
mov word [rsp + 0x108], ax
mov qword [rsp + 0xf8], rbx
lea r9, [r15 - 1]
xor r8d, r8d
mov rdx, r14
lea rcx, [rsp + 0x100]
call fcn.0040a800
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], r15d
lea r9, [rsp + 0xe0]
lea r8, [0x00401d40]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], r15d
lea r9, [rsp + 0xe0]
lea r8, [0x00402810]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], r15d
lea r9, [rsp + 0xe0]
lea r8, [0x00403310]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], r15d
lea r9, [rsp + 0xe0]
lea r8, [0x004041c0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], r15d
lea r9, [rsp + 0xe0]
lea r8, [0x00404d30]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], r15
mov word [rsp + 0x30], 0x51
lea rax, [rsp + 0x38]
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x168], r15
movaps xmm0, xmmword [rsp + 0x160]
movdqa xmmword [rsp + 0x60], xmm0
lea r9, [rsp + 0x30]
lea r8d, [r15 + 1]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.0040ac50
mov rbx, qword [rsp + 0x40]
mov rdi, rbx
mov rdx, qword [rsp + 0x48]
cmp rbx, rdx
jbe 0x405b1c
call fcn.00458540
mov rdx, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
cmp rdi, rdx
ja 0x405b26
cmp rdi, rbx
jae 0x405b35
call fcn.00458540
mov rdx, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov word [rsp + 0x30], 0x68
test rbx, rbx
je 0x405b72
mov rcx, rdx
sub rcx, rbx
sar rcx, 1
mov rax, qword [rsp + 0x50]
sub rax, rbx
sar rax, 1
cmp rcx, rax
jae 0x405b72
mov word [rdx], 0x68
add rdx, 2
mov qword [rsp + 0x48], rdx
mov rbx, qword [rsp + 0x40]
jmp 0x405c20
mov rdi, rdx
cmp rbx, rdx
jbe 0x405b89
call fcn.00458540
mov rdx, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdi
test rbx, rbx
je 0x405bba
mov rax, rdx
sub rax, rbx
sar rax, 1
je 0x405bba
cmp rbx, rdx
jbe 0x405bb2
call fcn.00458540
sub rdi, rbx
sar rdi, 1
jmp 0x405bbd
mov rdi, r15
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm0
lea r9, [rsp + 0x30]
mov r8d, 1
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.0040ac50
mov rbx, qword [rsp + 0x40]
mov rsi, rbx
mov rdx, qword [rsp + 0x48]
cmp rbx, rdx
jbe 0x405c03
call fcn.00458540
mov rdx, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
lea rax, [rsi + rdi*2]
cmp rax, rdx
ja 0x405c11
cmp rax, rbx
jae 0x405c20
call fcn.00458540
mov rdx, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov word [rsp + 0x30], 0x73
test rbx, rbx
je 0x405c5d
mov rcx, rdx
sub rcx, rbx
sar rcx, 1
mov rax, qword [rsp + 0x50]
sub rax, rbx
sar rax, 1
cmp rcx, rax
jae 0x405c5d
mov word [rdx], 0x73
add rdx, 2
mov qword [rsp + 0x48], rdx
mov rbx, qword [rsp + 0x40]
jmp 0x405d0b
mov rdi, rdx
cmp rbx, rdx
jbe 0x405c74
call fcn.00458540
mov rdx, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdi
test rbx, rbx
je 0x405ca5
mov rax, rdx
sub rax, rbx
sar rax, 1
je 0x405ca5
cmp rbx, rdx
jbe 0x405c9d
call fcn.00458540
sub rdi, rbx
sar rdi, 1
jmp 0x405ca8
mov rdi, r15
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm0
lea r9, [rsp + 0x30]
mov r8d, 1
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.0040ac50
mov rbx, qword [rsp + 0x40]
mov rsi, rbx
mov rdx, qword [rsp + 0x48]
cmp rbx, rdx
jbe 0x405cee
call fcn.00458540
mov rdx, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
lea rax, [rsi + rdi*2]
cmp rax, rdx
ja 0x405cfc
cmp rax, rbx
jae 0x405d0b
call fcn.00458540
mov rdx, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov word [rsp + 0x30], 0x4a
test rbx, rbx
je 0x405d48
mov rcx, rdx
sub rcx, rbx
sar rcx, 1
mov rax, qword [rsp + 0x50]
sub rax, rbx
sar rax, 1
cmp rcx, rax
jae 0x405d48
mov word [rdx], 0x4a
add rdx, 2
mov qword [rsp + 0x48], rdx
mov rbx, qword [rsp + 0x40]
jmp 0x405df6
mov rdi, rdx
cmp rbx, rdx
jbe 0x405d5f
call fcn.00458540
mov rdx, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdi
test rbx, rbx
je 0x405d90
mov rax, rdx
sub rax, rbx
sar rax, 1
je 0x405d90
cmp rbx, rdx
jbe 0x405d88
call fcn.00458540
sub rdi, rbx
sar rdi, 1
jmp 0x405d93
mov rdi, r15
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm0
lea r9, [rsp + 0x30]
mov r8d, 1
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.0040ac50
mov rbx, qword [rsp + 0x40]
mov rsi, rbx
mov rdx, qword [rsp + 0x48]
cmp rbx, rdx
jbe 0x405dd9
call fcn.00458540
mov rdx, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
lea rax, [rsi + rdi*2]
cmp rax, rdx
ja 0x405de7
cmp rax, rbx
jae 0x405df6
call fcn.00458540
mov rdx, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov word [rsp + 0x30], 0x67
test rbx, rbx
je 0x405e33
mov rcx, rdx
sub rcx, rbx
sar rcx, 1
mov rax, qword [rsp + 0x50]
sub rax, rbx
sar rax, 1
cmp rcx, rax
jae 0x405e33
mov word [rdx], 0x67
add rdx, 2
mov qword [rsp + 0x48], rdx
mov rbx, qword [rsp + 0x40]
jmp 0x405ee1
mov rdi, rdx
cmp rbx, rdx
jbe 0x405e4a
call fcn.00458540
mov rdx, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdi
test rbx, rbx
je 0x405e7b
mov rax, rdx
sub rax, rbx
sar rax, 1
je 0x405e7b
cmp rbx, rdx
jbe 0x405e73
call fcn.00458540
sub rdi, rbx
sar rdi, 1
jmp 0x405e7e
mov rdi, r15
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm0
lea r9, [rsp + 0x30]
mov r8d, 1
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.0040ac50
mov rbx, qword [rsp + 0x40]
mov rsi, rbx
mov rdx, qword [rsp + 0x48]
cmp rbx, rdx
jbe 0x405ec4
call fcn.00458540
mov rdx, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
lea rax, [rsi + rdi*2]
cmp rax, rdx
ja 0x405ed2
cmp rax, rbx
jae 0x405ee1
call fcn.00458540
mov rdx, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov word [rsp + 0x30], 0x7a
test rbx, rbx
je 0x405f1e
mov rcx, rdx
sub rcx, rbx
sar rcx, 1
mov rax, qword [rsp + 0x50]
sub rax, rbx
sar rax, 1
cmp rcx, rax
jae 0x405f1e
mov word [rdx], 0x7a
add rdx, 2
mov qword [rsp + 0x48], rdx
mov rbx, qword [rsp + 0x40]
jmp 0x405fcc
mov rdi, rdx
cmp rbx, rdx
jbe 0x405f35
call fcn.00458540
mov rdx, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdi
test rbx, rbx
je 0x405f66
mov rax, rdx
sub rax, rbx
sar rax, 1
je 0x405f66
cmp rbx, rdx
jbe 0x405f5e
call fcn.00458540
sub rdi, rbx
sar rdi, 1
jmp 0x405f69
mov rdi, r15
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm0
lea r9, [rsp + 0x30]
mov r8d, 1
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.0040ac50
mov rbx, qword [rsp + 0x40]
mov rsi, rbx
mov rdx, qword [rsp + 0x48]
cmp rbx, rdx
jbe 0x405faf
call fcn.00458540
mov rdx, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
lea rax, [rsi + rdi*2]
cmp rax, rdx
ja 0x405fbd
cmp rax, rbx
jae 0x405fcc
call fcn.00458540
mov rdx, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov word [rsp + 0x30], 0x75
test rbx, rbx
je 0x406009
mov rcx, rdx
sub rcx, rbx
sar rcx, 1
mov rax, qword [rsp + 0x50]
sub rax, rbx
sar rax, 1
cmp rcx, rax
jae 0x406009
mov word [rdx], 0x75
add rdx, 2
mov qword [rsp + 0x48], rdx
mov rbx, qword [rsp + 0x40]
jmp 0x4060b7
mov rdi, rdx
cmp rbx, rdx
jbe 0x406020
call fcn.00458540
mov rdx, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdi
test rbx, rbx
je 0x406051
mov rax, rdx
sub rax, rbx
sar rax, 1
je 0x406051
cmp rbx, rdx
jbe 0x406049
call fcn.00458540
sub rdi, rbx
sar rdi, 1
jmp 0x406054
mov rdi, r15
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm0
lea r9, [rsp + 0x30]
mov r8d, 1
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.0040ac50
mov rbx, qword [rsp + 0x40]
mov rsi, rbx
mov rdx, qword [rsp + 0x48]
cmp rbx, rdx
jbe 0x40609a
call fcn.00458540
mov rdx, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
lea rax, [rsi + rdi*2]
cmp rax, rdx
ja 0x4060a8
cmp rax, rbx
jae 0x4060b7
call fcn.00458540
mov rdx, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov word [rsp + 0x30], 0x4c
test rbx, rbx
je 0x4060f4
mov rcx, rdx
sub rcx, rbx
sar rcx, 1
mov rax, qword [rsp + 0x50]
sub rax, rbx
sar rax, 1
cmp rcx, rax
jae 0x4060f4
mov word [rdx], 0x4c
add rdx, 2
mov qword [rsp + 0x48], rdx
mov rbx, qword [rsp + 0x40]
jmp 0x4061a2
mov rdi, rdx
cmp rbx, rdx
jbe 0x40610b
call fcn.00458540
mov rdx, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdi
test rbx, rbx
je 0x40613c
mov rax, rdx
sub rax, rbx
sar rax, 1
je 0x40613c
cmp rbx, rdx
jbe 0x406134
call fcn.00458540
sub rdi, rbx
sar rdi, 1
jmp 0x40613f
mov rdi, r15
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm0
lea r9, [rsp + 0x30]
mov r8d, 1
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.0040ac50
mov rbx, qword [rsp + 0x40]
mov rsi, rbx
mov rdx, qword [rsp + 0x48]
cmp rbx, rdx
jbe 0x406185
call fcn.00458540
mov rdx, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
lea rax, [rsi + rdi*2]
cmp rax, rdx
ja 0x406193
cmp rax, rbx
jae 0x4061a2
call fcn.00458540
mov rdx, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov word [rsp + 0x30], 0x64
test rbx, rbx
je 0x4061df
mov rcx, rdx
sub rcx, rbx
sar rcx, 1
mov rax, qword [rsp + 0x50]
sub rax, rbx
sar rax, 1
cmp rcx, rax
jae 0x4061df
mov word [rdx], 0x64
add rdx, 2
mov qword [rsp + 0x48], rdx
mov rbx, qword [rsp + 0x40]
jmp 0x40628d
mov rdi, rdx
cmp rbx, rdx
jbe 0x4061f6
call fcn.00458540
mov rdx, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdi
test rbx, rbx
je 0x406227
mov rax, rdx
sub rax, rbx
sar rax, 1
je 0x406227
cmp rbx, rdx
jbe 0x40621f
call fcn.00458540
sub rdi, rbx
sar rdi, 1
jmp 0x40622a
mov rdi, r15
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm0
lea r9, [rsp + 0x30]
mov r8d, 1
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.0040ac50
mov rbx, qword [rsp + 0x40]
mov rsi, rbx
mov rdx, qword [rsp + 0x48]
cmp rbx, rdx
jbe 0x406270
call fcn.00458540
mov rdx, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
lea rax, [rsi + rdi*2]
cmp rax, rdx
ja 0x40627e
cmp rax, rbx
jae 0x40628d
call fcn.00458540
mov rdx, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov word [rsp + 0x30], 0x66
test rbx, rbx
je 0x4062c5
mov rcx, rdx
sub rcx, rbx
sar rcx, 1
mov rax, qword [rsp + 0x50]
sub rax, rbx
sar rax, 1
cmp rcx, rax
jae 0x4062c5
mov word [rdx], 0x66
lea rax, [rdx + 2]
mov qword [rsp + 0x48], rax
jmp 0x406369
mov rdi, rdx
cmp rbx, rdx
jbe 0x4062dc
call fcn.00458540
mov rdx, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdi
test rbx, rbx
je 0x40630d
mov rax, rdx
sub rax, rbx
sar rax, 1
je 0x40630d
cmp rbx, rdx
jbe 0x406305
call fcn.00458540
sub rdi, rbx
sar rdi, 1
jmp 0x406310
mov rdi, r15
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm0
lea r9, [rsp + 0x30]
mov r8d, 1
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.0040ac50
mov r11, qword [rsp + 0x40]
mov rbx, r11
mov rax, qword [rsp + 0x48]
cmp r11, rax
jbe 0x406356
call fcn.00458540
mov rax, qword [rsp + 0x48]
mov r11, qword [rsp + 0x40]
lea rcx, [rbx + rdi*2]
cmp rcx, rax
ja 0x406364
cmp rcx, r11
jae 0x406369
call fcn.00458540
mov word [rsp + 0x30], 0x66
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.0040a210
mov word [rsp + 0x30], 0x51
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.0040a210
mov word [rsp + 0x30], 0x67
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.0040a210
mov word [rsp + 0x30], 0x79
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.0040a210
mov word [rsp + 0x30], 0x75
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.0040a210
mov word [rsp + 0x160], 0x75
mov word [rsp + 0x162], 0x7a
mov word [rsp + 0x164], 0x46
mov word [rsp + 0x166], 0x63
mov word [rsp + 0x168], 0x6e
mov word [rsp + 0x16a], 0x47
mov word [rsp + 0x16c], 0x66
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
call fcn.0040a050
mov r9d, 7
lea r8, [rsp + 0x160]
mov rdx, rax
lea rcx, [rsp + 0x130]
call fcn.00401270
nop
mov dword [rsp + 0xa0], r15d
mov qword [rsp + 0xc8], SafeArrayGetDim
mov qword [rsp + 0xc0], r15
mov byte [rsp + 0xb0], 0
mov r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0xa8]
call fcn.0040a4e0
lea rdx, [rsp + 0xa8]
mov rcx, qword [rsp + 0xf8]
call fcn.00401b00
mov r13, rax
mov ebp, r15d
lea r9, [rsp + 0xa0]
mov r8d, 0x258
lea rdx, [rsp + 0x170]
mov rcx, qword [rsp + 0xf0]
call r13
test eax, eax
je 0x406555
mov ecx, dword [rsp + 0xa0]
test ecx, ecx
je 0x406555
mov edi, r15d
test ecx, ecx
je 0x40652c
lea rbx, [rsp + 0x170]
nop
mov esi, ebp
mov rcx, qword [r12 + 8]
test rcx, rcx
je 0x406509
mov rax, qword [r12 + 0x10]
sub rax, rcx
cmp rsi, rax
jb 0x40650e
call fcn.00458540
mov rcx, qword [r12 + 8]
movzx eax, byte [rbx]
mov byte [rsi + rcx], al
add edi, 1
add rbx, 1
add ebp, 1
cmp edi, dword [rsp + 0xa0]
jb 0x4064f0
lea r9, [rsp + 0xa0]
mov r8d, 0x258
lea rdx, [rsp + 0x170]
mov rcx, qword [rsp + 0xf0]
call r13
test eax, eax
jne 0x4064d2
mov qword [rsp + 0x88], r15
mov qword [rsp + 0x90], r15
mov qword [rsp + 0x98], r15
mov word [rsp + 0x30], 0x4f
lea rax, [rsp + 0x80]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], r15
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm0
lea r9, [rsp + 0x30]
mov r8d, 1
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x80]
call fcn.0040ac50
mov rbx, qword [rsp + 0x88]
mov rdi, rbx
mov rdx, qword [rsp + 0x90]
cmp rbx, rdx
jbe 0x4065db
call fcn.00458540
mov rdx, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x88]
cmp rdi, rdx
ja 0x4065e5
cmp rdi, rbx
jae 0x4065fa
call fcn.00458540
mov rdx, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x88]
mov word [rsp + 0x30], 0x61
test rbx, rbx
je 0x406640
mov rcx, rdx
sub rcx, rbx
sar rcx, 1
mov rax, qword [rsp + 0x98]
sub rax, rbx
sar rax, 1
cmp rcx, rax
jae 0x406640
mov word [rdx], 0x61
add rdx, 2
mov qword [rsp + 0x90], rdx
mov rbx, qword [rsp + 0x88]
jmp 0x40670c
mov rdi, rdx
cmp rbx, rdx
jbe 0x40665d
call fcn.00458540
mov rdx, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x88]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdi
test rbx, rbx
je 0x406691
mov rax, rdx
sub rax, rbx
sar rax, 1
je 0x406691
cmp rbx, rdx
jbe 0x406689
call fcn.00458540
sub rdi, rbx
sar rdi, 1
jmp 0x406694
mov rdi, r15
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm0
lea r9, [rsp + 0x30]
mov r8d, 1
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x80]
call fcn.0040ac50
mov rbx, qword [rsp + 0x88]
mov rsi, rbx
mov rdx, qword [rsp + 0x90]
cmp rbx, rdx
jbe 0x4066e9
call fcn.00458540
mov rdx, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x88]
lea rax, [rsi + rdi*2]
cmp rax, rdx
ja 0x4066f7
cmp rax, rbx
jae 0x40670c
call fcn.00458540
mov rdx, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x88]
mov word [rsp + 0x30], 0x6a
test rbx, rbx
je 0x40674a
mov rcx, rdx
sub rcx, rbx
sar rcx, 1
mov rax, qword [rsp + 0x98]
sub rax, rbx
sar rax, 1
cmp rcx, rax
jae 0x40674a
mov word [rdx], 0x6a
lea rax, [rdx + 2]
mov qword [rsp + 0x90], rax
jmp 0x406806
mov rdi, rdx
cmp rbx, rdx
jbe 0x406767
call fcn.00458540
mov rdx, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x88]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdi
test rbx, rbx
je 0x40679b
mov rax, rdx
sub rax, rbx
sar rax, 1
je 0x40679b
cmp rbx, rdx
jbe 0x406793
call fcn.00458540
sub rdi, rbx
sar rdi, 1
jmp 0x40679e
mov rdi, r15
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm0
lea r9, [rsp + 0x30]
mov r8d, 1
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x80]
call fcn.0040ac50
mov r11, qword [rsp + 0x88]
mov rbx, r11
mov rax, qword [rsp + 0x90]
cmp r11, rax
jbe 0x4067f3
call fcn.00458540
mov rax, qword [rsp + 0x90]
mov r11, qword [rsp + 0x88]
lea rcx, [rbx + rdi*2]
cmp rcx, rax
ja 0x406801
cmp rcx, r11
jae 0x406806
call fcn.00458540
mov word [rsp + 0x30], 0x52
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x80]
call fcn.0040a210
mov word [rsp + 0x30], 0x6c
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x80]
call fcn.0040a210
mov word [rsp + 0x30], 0x6c
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x80]
call fcn.0040a210
mov word [rsp + 0x30], 0x6c
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x80]
call fcn.0040a210
mov word [rsp + 0x30], 0x4d
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x80]
call fcn.0040a210
mov word [rsp + 0x30], 0x64
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x80]
call fcn.0040a210
mov word [rsp + 0x30], 0x67
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x80]
call fcn.0040a210
mov word [rsp + 0x30], 0x6f
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x80]
call fcn.0040a210
mov word [rsp + 0x30], 0x6f
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x80]
call fcn.0040a210
mov word [rsp + 0x30], 0x5a
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x80]
call fcn.0040a210
mov word [rsp + 0x30], 0x73
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x80]
call fcn.0040a210
mov word [rsp + 0x30], 0x6a
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x80]
call fcn.0040a210
mov word [rsp + 0x30], 0x6e
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x80]
call fcn.0040a210
mov word [rsp + 0x30], 0x64
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x80]
call fcn.0040a210
mov word [rsp + 0x30], 0x77
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x80]
call fcn.0040a210
mov word [rsp + 0x160], 0x73
mov word [rsp + 0x162], 0x53
mov word [rsp + 0x164], 0x77
mov word [rsp + 0x166], 0x4b
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x60]
call fcn.0040a050
mov r9d, 4
lea r8, [rsp + 0x160]
mov rdx, rax
lea rcx, [rsp + 0xa8]
call fcn.00401270
nop
mov r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x130]
call fcn.0040a4e0
nop
cmp qword [rsp + 0xc8], 0x10
jb 0x406a09
mov rcx, qword [rsp + 0xb0]
call fcn.0040c530
lea r9, [0x00484f20]
mov edx, 1
xor ecx, ecx
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov qword [rsp + 0xc8], SafeArrayGetDim
mov qword [rsp + 0xc0], r15
mov byte [rsp + 0xb0], 0
mov r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0xa8]
call fcn.0040a4e0
lea rdx, [rsp + 0xa8]
mov rcx, qword [rsp + 0xf8]
call fcn.00401b00
mov rbx, rax
mov rcx, qword [rsp + 0xf0]
call rbx
mov rcx, qword [rsp + 0xe8]
call rbx
mov rcx, qword [rsp + 0xe0]
call rbx
nop
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x406aa4
call fcn.0040c530
mov qword [rsp + 0x88], r15
mov qword [rsp + 0x90], r15
mov qword [rsp + 0x98], r15
cmp qword [rsp + 0x150], 0x10
jb 0x406ad4
mov rcx, qword [rsp + 0x138]
call fcn.0040c530
mov qword [rsp + 0x150], SafeArrayGetDim
mov qword [rsp + 0x148], r15
mov byte [rsp + 0x138], 0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x406aff
call fcn.0040c530
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], r15
cmp qword [rsp + 0x120], 8
jb 0x406b26
mov rcx, qword [rsp + 0x108]
call fcn.0040c530
mov qword [rsp + 0x120], 7
mov qword [rsp + 0x118], r15
mov word [rsp + 0x108], 0
cmp qword [r14 + 0x20], 8
jb 0x406b54
mov rcx, qword [r14 + 8]
call fcn.0040c530
mov qword [r14 + 0x20], 7
mov qword [r14 + 0x18], r15
mov word [r14 + 8], 0
mov rax, r12
mov rcx, qword [rsp + 0x3d0]
xor rcx, rsp
call fcn.00457f50
mov rbx, qword [rsp + 0x438]
mov rbp, qword [rsp + 0x410]
mov rsi, qword [rsp + 0x408]
mov rdi, qword [rsp + 0x400]
mov r12, qword [rsp + 0x3f8]
mov r13, qword [rsp + 0x3f0]
mov r14, qword [rsp + 0x3e8]
mov r15, qword [rsp + 0x3e0]
add rsp, 0x418
ret