Function at 0x18000a855
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push rbp
sub rsp, 0x770
lea rbp, [rsp + 0x40]
mov qword [rsp], rax
mov rax, 0x76c
mov dword [rsp + rax], 0xcccccccc
sub rax, 4
cmp rax, 4
jg 0x18000a86d
mov rax, qword [rsp]
mov dword [rsp], 0xcccccccc
mov dword [rsp + 4], 0xcccccccc
mov qword [rbp + 0x2b8], rsi
mov qword [rbp + 0x2b0], rbx
mov qword [rbp + 0x740], rcx
mov dword [rbp + 0x748], edx
mov rax, qword [0x1800f4ae8]
xor rax, rbp
mov qword [rbp + 0x728], rax
mov byte [rbp + 0x44], 0
mov byte [rbp + 0x43], 0
mov byte [rbp + 0x41], 0
mov byte [rbp + 0x40], 0
mov byte [rbp + 0x42], 0
mov dword [rbp + 0x48], 0
mov eax, 0
mov edx, 0
mov rcx, qword [sym.imp.ole32.dll_CoInitializeEx]
mov qword [rbp + 0x1c0], rcx
mov rcx, rax
mov rax, qword [rbp + 0x1c0]
call rax
mov dword [rbp + 0x4c], eax
mov eax, 0x4c000
mov rcx, rax
call fcn.180062320
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0xa8]
mov qword [rbp + 0xb0], rax
mov rax, qword [rbp + 0xb0]
test rax, rax
je 0x18000ba24
mov eax, 0
mov rdx, qword [rbp + 0xb0]
mov ecx, 0x400
mov dword [rbp + 0x1c8], ecx
mov ecx, eax
mov eax, dword [rbp + 0x1c8]
mov r8d, eax
call fcn.180009c70
mov dword [rbp + 0x50], eax
mov eax, dword [rbp + 0x50]
mov dword [rbp + 0x54], eax
mov dword [rbp + 0x58], 0
mov eax, dword [rbp + 0x58]
mov edx, dword [rbp + 0x54]
cmp eax, edx
jl 0x18000a984
jmp 0x18000ba15
mov eax, 1
add eax, dword [rbp + 0x58]
mov dword [rbp + 0x58], eax
jmp 0x18000a968
mov eax, dword [rbp + 0x58]
movsxd rax, eax
imul rax, rax, 0x130
add rax, qword [rbp + 0xb0]
mov eax, dword [rax + 0x128]
test eax, eax
je 0x18000a977
mov eax, dword [rbp + 0x58]
movsxd rax, eax
imul rax, rax, 0x130
add rax, qword [rbp + 0xb0]
mov rax, qword [rax + 0x120]
movsx eax, byte [rax]
movsx rax, al
mov ecx, eax
call fcn.180065f40
mov dword [rbp + 0x5c], eax
mov eax, dword [rbp + 0x5c]
test eax, eax
je 0x18000a977
lea rax, [rbp + 0x3bc]
mov edx, 0
mov ecx, 0x80
mov qword [rbp + 0x1d0], rcx
mov rcx, rax
mov rax, qword [rbp + 0x1d0]
mov r8, rax
call fcn.180062370
mov qword [rbp + 0xb8], rax
lea rax, [rbp + 0x444]
mov edx, 0
mov ecx, 0x100
mov qword [rbp + 0x1d8], rcx
mov rcx, rax
mov rax, qword [rbp + 0x1d8]
mov r8, rax
call fcn.180062370
mov qword [rbp + 0xc0], rax
lea rax, [rbp + 0x54c]
mov edx, 0
mov ecx, 0x100
mov qword [rbp + 0x1e0], rcx
mov rcx, rax
mov rax, qword [rbp + 0x1e0]
mov r8, rax
call fcn.180062370
mov qword [rbp + 0xc8], rax
lea rax, [rbp + 0x2c8]
mov edx, 0
mov ecx, 0x80
mov qword [rbp + 0x1e8], rcx
mov rcx, rax
mov rax, qword [rbp + 0x1e8]
mov r8, rax
call fcn.180062370
mov qword [rbp + 0xd0], rax
mov eax, dword [rbp + 0x58]
movsxd rax, eax
imul rax, rax, 0x130
add rax, qword [rbp + 0xb0]
mov eax, dword [rax]
mov dword [rbp + 0x60], eax
mov eax, dword [rbp + 0x60]
cmp eax, 0x220d5cc1
je 0x18000aaeb
mov eax, dword [rbp + 0x60]
cmp eax, 0xb9819c52
je 0x18000b2c1
mov eax, dword [rbp + 0x60]
cmp eax, 0x5e7e8100
je 0x18000b3e0
mov eax, dword [rbp + 0x60]
cmp eax, 0xe161255a
je 0x18000b4ff
jmp 0x18000b758
lea rax, [rbp + 0x3bc]
lea rdx, [0x1801013c8]
mov rcx, rax
call fcn.180062660
mov qword [rbp + 0xd8], rax
lea rax, [rbp + 0x444]
mov edx, dword [rbp + 0x58]
movsxd rdx, edx
imul rdx, rdx, 0x130
add rdx, qword [rbp + 0xb0]
lea rdx, [rdx + 0x20]
mov ecx, 0x80
mov qword [rbp + 0x1f0], rcx
mov rcx, rax
mov rax, qword [rbp + 0x1f0]
mov r8, rax
call fcn.180063c00
mov qword [rbp + 0xe0], rax
lea rax, [rbp + 0x444]
add rax, 0xfe
mov word [rax], 0
mov byte [rbp + 0x40], 1
mov rax, 0xffffffff80000001
lea rdx, [0x1801014a6]
mov ecx, 0
mov ebx, 0x20019
lea rsi, [rbp + 0x20]
mov qword [rsp + 0x20], rsi
mov rsi, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [rbp + 0x1f8], ecx
mov rcx, rax
mov eax, dword [rbp + 0x1f8]
mov r8d, eax
mov r9d, ebx
call rsi
mov dword [rbp + 0x64], eax
mov eax, dword [rbp + 0x64]
test eax, eax
jne 0x18000b1bf
mov dword [rbp + 0x68], 0
mov eax, 0
cmp eax, 1
jne 0x18000abd2
jmp 0x18000b195
mov eax, 1
add eax, dword [rbp + 0x68]
mov dword [rbp + 0x68], eax
jmp 0x18000abb6
mov byte [rbp + 0x41], 1
mov dword [rbp + 8], 0x64
movzx eax, byte [rbp + 0x40]
test eax, eax
jne 0x18000abf4
lea rax, [0x180101484]
mov rcx, rax
call fcn.180064a90
mov byte [rbp + 0x41], 1
mov rax, qword [rbp + 0x20]
mov edx, dword [rbp + 0x68]
lea rcx, [rbp + 0x350]
lea rbx, [rbp + 8]
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov rsi, qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov qword [rbp + 0x200], rcx
mov rcx, rax
mov rax, qword [rbp + 0x200]
mov r8, rax
mov r9, rbx
call rsi
mov dword [rbp + 0x6c], eax
mov byte [rbp + 0x42], 1
mov eax, dword [rbp + 0x6c]
mov dword [rbp + 0x74], eax
movzx eax, byte [rbp + 0x42]
test eax, eax
jne 0x18000ac72
lea rax, [0x18010148c]
mov rcx, rax
call fcn.180064a90
mov eax, dword [rbp + 0x74]
cmp eax, 0x103
je 0x18000b195
movzx eax, byte [rbp + 0x42]
test eax, eax
jne 0x18000ac97
lea rax, [0x18010148c]
mov rcx, rax
call fcn.180064a90
mov eax, dword [rbp + 0x74]
test eax, eax
jne 0x18000abc5
movzx eax, byte [rbp + 0x41]
test eax, eax
jne 0x18000acb9
lea rax, [0x180101490]
mov rcx, rax
call fcn.180064a90
lea rax, [rbp + 0x350]
mov edx, dword [rbp + 8]
add rax, rdx
mov byte [rax], 0
movzx eax, byte [rbp + 0x40]
test eax, eax
jne 0x18000ace0
lea rax, [0x180101484]
mov rcx, rax
call fcn.180064a90
mov byte [rbp + 0x43], 1
mov rax, qword [rbp + 0x20]
lea rdx, [rbp + 0x350]
mov ecx, 0
mov ebx, 0x20019
lea rsi, [rbp + 0x30]
mov qword [rsp + 0x20], rsi
mov rsi, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [rbp + 0x208], ecx
mov rcx, rax
mov eax, dword [rbp + 0x208]
mov r8d, eax
mov r9d, ebx
call rsi
mov dword [rbp + 0x7c], eax
mov eax, dword [rbp + 0x7c]
test eax, eax
jne 0x18000abc5
mov byte [rbp + 0x41], 1
mov dword [rbp + 8], reloc.OLEAUT32.dll_SetErrorInfo
movzx eax, byte [rbp + 0x43]
test eax, eax
jne 0x18000ad50
lea rax, [0x180101494]
mov rcx, rax
call fcn.180064a90
mov byte [rbp + 0x44], 1
mov byte [rbp + 0x41], 1
mov rax, qword [rbp + 0x30]
lea rdx, [0x180101440]
mov ecx, 0
lea rbx, [rbp + 0x14]
lea rsi, [rbp + 0x654]
mov qword [rsp + 0x20], rsi
lea rsi, [rbp + 8]
mov qword [rsp + 0x28], rsi
mov rsi, qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov qword [rbp + 0x210], rcx
mov rcx, rax
mov rax, qword [rbp + 0x210]
mov r8, rax
mov r9, rbx
call rsi
mov dword [rbp + 0x80], eax
mov eax, dword [rbp + 0x80]
test eax, eax
jne 0x18000af50
movzx eax, byte [rbp + 0x44]
test eax, eax
jne 0x18000adcc
lea rax, [0x18010149c]
mov rcx, rax
call fcn.180064a90
mov eax, dword [rbp + 0x14]
cmp eax, 1
je 0x18000adf7
movzx eax, byte [rbp + 0x44]
test eax, eax
jne 0x18000adeb
lea rax, [0x18010149c]
mov rcx, rax
call fcn.180064a90
mov eax, dword [rbp + 0x14]
cmp eax, 2
jne 0x18000b163
lea rax, [rbp + 0x654]
add rax, 2
mov edx, dword [rbp + 0x58]
movsxd rdx, edx
imul rdx, rdx, 0x130
add rdx, qword [rbp + 0xb0]
lea rdx, [rdx + 0x20]
mov rcx, rax
call fcn.18006aac0
mov dword [rbp + 0x88], eax
mov eax, dword [rbp + 0x88]
test eax, eax
jne 0x18000b163
mov byte [rbp + 0x41], 1
mov dword [rbp + 8], reloc.OLEAUT32.dll_SetErrorInfo
movzx eax, byte [rbp + 0x43]
test eax, eax
jne 0x18000ae58
lea rax, [0x180101494]
mov rcx, rax
call fcn.180064a90
mov byte [rbp + 0x44], 1
mov byte [rbp + 0x41], 1
mov rax, qword [rbp + 0x30]
lea rdx, [0x1801013d8]
mov ecx, 0
lea rbx, [rbp + 0x14]
lea rsi, [rbp + 0x654]
mov qword [rsp + 0x20], rsi
lea rsi, [rbp + 8]
mov qword [rsp + 0x28], rsi
mov rsi, qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov qword [rbp + 0x218], rcx
mov rcx, rax
mov rax, qword [rbp + 0x218]
mov r8, rax
mov r9, rbx
call rsi
mov dword [rbp + 0x94], eax
mov eax, dword [rbp + 0x94]
test eax, eax
jne 0x18000b163
movzx eax, byte [rbp + 0x41]
test eax, eax
jne 0x18000aed4
lea rax, [0x180101490]
mov rcx, rax
call fcn.180064a90
lea rax, [rbp + 0x654]
mov edx, dword [rbp + 8]
add rax, rdx
mov byte [rax], 0
mov eax, dword [rbp + 0x58]
movsxd rax, eax
imul rax, rax, 0x130
add rax, qword [rbp + 0xb0]
lea rax, [rax + 0x20]
lea rdx, [rbp + 0x654]
mov ecx, 0x80
mov qword [rbp + 0x220], rcx
mov rcx, rax
mov rax, qword [rbp + 0x220]
mov r8, rax
call fcn.180063c00
mov qword [rbp + 0x1b0], rax
mov eax, dword [rbp + 0x58]
movsxd rax, eax
imul rax, rax, 0x130
add rax, qword [rbp + 0xb0]
add rax, 0xfe
add rax, 0x20
mov word [rax], 0
jmp 0x18000b163
movzx eax, byte [rbp + 0x43]
test eax, eax
jne 0x18000af67
lea rax, [0x180101494]
mov rcx, rax
call fcn.180064a90
mov byte [rbp + 0x44], 1
mov byte [rbp + 0x41], 1
mov rax, qword [rbp + 0x30]
lea rdx, [0x180101420]
mov ecx, 0
lea rbx, [rbp + 0x14]
lea rsi, [rbp + 0x654]
mov qword [rsp + 0x20], rsi
lea rsi, [rbp + 8]
mov qword [rsp + 0x28], rsi
mov rsi, qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov qword [rbp + 0x228], rcx
mov rcx, rax
mov rax, qword [rbp + 0x228]
mov r8, rax
mov r9, rbx
call rsi
mov dword [rbp + 0x84], eax
mov eax, dword [rbp + 0x84]
test eax, eax
jne 0x18000b163
mov eax, 2
imul rax, rax, 2
lea rdx, [rbp + 0x654]
add rax, rdx
mov edx, dword [rbp + 0x58]
movsxd rdx, edx
imul rdx, rdx, 0x130
add rdx, qword [rbp + 0xb0]
lea rdx, [rdx + 0x20]
mov rcx, rax
call fcn.18006aac0
mov dword [rbp + 0x8c], eax
mov eax, dword [rbp + 0x8c]
test eax, eax
je 0x18000b04e
lea rax, [rbp + 0x654]
add rax, 2
mov edx, dword [rbp + 0x58]
movsxd rdx, edx
imul rdx, rdx, 0x130
add rdx, qword [rbp + 0xb0]
lea rdx, [rdx + 0x20]
mov rcx, rax
call fcn.18006aac0
mov dword [rbp + 0x98], eax
mov eax, dword [rbp + 0x98]
test eax, eax
jne 0x18000b163
mov byte [rbp + 0x41], 1
mov dword [rbp + 8], reloc.OLEAUT32.dll_SetErrorInfo
movzx eax, byte [rbp + 0x43]
test eax, eax
jne 0x18000b070
lea rax, [0x180101494]
mov rcx, rax
call fcn.180064a90
mov byte [rbp + 0x44], 1
mov byte [rbp + 0x41], 1
mov rax, qword [rbp + 0x30]
lea rdx, [0x180101400]
mov ecx, 0
lea rbx, [rbp + 0x14]
lea rsi, [rbp + 0x654]
mov qword [rsp + 0x20], rsi
lea rsi, [rbp + 8]
mov qword [rsp + 0x28], rsi
mov rsi, qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov qword [rbp + 0x230], rcx
mov rcx, rax
mov rax, qword [rbp + 0x230]
mov r8, rax
mov r9, rbx
call rsi
mov dword [rbp + 0x9c], eax
mov eax, dword [rbp + 0x9c]
test eax, eax
jne 0x18000b163
movzx eax, byte [rbp + 0x41]
test eax, eax
jne 0x18000b0ec
lea rax, [0x180101490]
mov rcx, rax
call fcn.180064a90
lea rax, [rbp + 0x654]
mov edx, dword [rbp + 8]
add rax, rdx
mov byte [rax], 0
mov eax, dword [rbp + 0x58]
movsxd rax, eax
imul rax, rax, 0x130
add rax, qword [rbp + 0xb0]
lea rax, [rax + 0x20]
lea rdx, [rbp + 0x654]
mov ecx, 0x80
mov qword [rbp + 0x238], rcx
mov rcx, rax
mov rax, qword [rbp + 0x238]
mov r8, rax
call fcn.180063c00
mov qword [rbp + 0x1b8], rax
mov eax, dword [rbp + 0x58]
movsxd rax, eax
imul rax, rax, 0x130
add rax, qword [rbp + 0xb0]
add rax, 0xfe
add rax, 0x20
mov word [rax], 0
movzx eax, byte [rbp + 0x43]
test eax, eax
jne 0x18000b17a
lea rax, [0x180101494]
mov rcx, rax
call fcn.180064a90
mov rax, qword [rbp + 0x30]
mov rdx, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rax
call rdx
mov dword [rbp + 0x90], eax
jmp 0x18000abc5
movzx eax, byte [rbp + 0x40]
test eax, eax
jne 0x18000b1ac
lea rax, [0x180101484]
mov rcx, rax
call fcn.180064a90
mov rax, qword [rbp + 0x20]
mov rdx, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rax
call rdx
mov dword [rbp + 0x70], eax
lea rax, [rbp + 0x54c]
mov edx, dword [rbp + 0x58]
movsxd rdx, edx
imul rdx, rdx, 0x130
add rdx, qword [rbp + 0xb0]
lea rdx, [rdx + 0x20]
mov ecx, 0x80
mov qword [rbp + 0x240], rcx
mov rcx, rax
mov rax, qword [rbp + 0x240]
mov r8, rax
call fcn.180063c00
mov qword [rbp + 0x118], rax
lea rax, [rbp + 0x54c]
add rax, 0xfe
mov word [rax], 0
mov eax, dword [rbp + 0x58]
movsxd rax, eax
imul rax, rax, 0x130
add rax, qword [rbp + 0xb0]
mov eax, dword [rax + 0x128]
cmp eax, 0x7f
ja 0x18000b25a
mov eax, dword [rbp + 0x58]
movsxd rax, eax
imul rax, rax, 0x130
add rax, qword [rbp + 0xb0]
mov eax, dword [rax + 0x128]
movsxd rax, eax
mov qword [rbp + 0x148], rax
jmp 0x18000b265
mov qword [rbp + 0x148], 0x7f
lea rax, [rbp + 0x2c8]
mov edx, dword [rbp + 0x58]
movsxd rdx, edx
imul rdx, rdx, 0x130
add rdx, qword [rbp + 0xb0]
mov rdx, qword [rdx + 0x120]
mov rcx, qword [rbp + 0x148]
mov qword [rbp + 0x248], rcx
mov rcx, rax
mov rax, qword [rbp + 0x248]
mov r8, rax
call fcn.180066f00
mov qword [rbp + 0x168], rax
lea rax, [rbp + 0x2c8]
add rax, 0x7f
mov byte [rax], 0
jmp 0x18000b872
lea rax, [rbp + 0x3bc]
lea rdx, [0x180101468]
mov rcx, rax
call fcn.180062660
mov qword [rbp + 0xe8], rax
lea rax, [rbp + 0x444]
mov edx, dword [rbp + 0x58]
movsxd rdx, edx
imul rdx, rdx, 0x130
add rdx, qword [rbp + 0xb0]
lea rdx, [rdx + 0x20]
mov ecx, 0x80
mov qword [rbp + 0x250], rcx
mov rcx, rax
mov rax, qword [rbp + 0x250]
mov r8, rax
call fcn.180063c00
mov qword [rbp + 0xf0], rax
lea rax, [rbp + 0x444]
add rax, 0xfe
mov word [rax], 0
mov eax, dword [rbp + 0x58]
movsxd rax, eax
imul rax, rax, 0x130
add rax, qword [rbp + 0xb0]
mov eax, dword [rax + 0x128]
cmp eax, 0x7f
ja 0x18000b379
mov eax, dword [rbp + 0x58]
movsxd rax, eax
imul rax, rax, 0x130
add rax, qword [rbp + 0xb0]
mov eax, dword [rax + 0x128]
movsxd rax, eax
mov qword [rbp + 0x120], rax
jmp 0x18000b384
mov qword [rbp + 0x120], 0x7f
lea rax, [rbp + 0x2c8]
mov edx, dword [rbp + 0x58]
movsxd rdx, edx
imul rdx, rdx, 0x130
add rdx, qword [rbp + 0xb0]
mov rdx, qword [rdx + 0x120]
mov rcx, qword [rbp + 0x120]
mov qword [rbp + 0x258], rcx
mov rcx, rax
mov rax, qword [rbp + 0x258]
mov r8, rax
call fcn.180066f00
mov qword [rbp + 0x138], rax
lea rax, [rbp + 0x2c8]
add rax, 0x7f
mov byte [rax], 0
jmp 0x18000b872
lea rax, [rbp + 0x3bc]
lea rdx, [0x180101470]
mov rcx, rax
call fcn.180062660
mov qword [rbp + 0xf8], rax
lea rax, [rbp + 0x444]
mov edx, dword [rbp + 0x58]
movsxd rdx, edx
imul rdx, rdx, 0x130
add rdx, qword [rbp + 0xb0]
lea rdx, [rdx + 0x20]
mov ecx, 0x80
mov qword [rbp + 0x260], rcx
mov rcx, rax
mov rax, qword [rbp + 0x260]
mov r8, rax
call fcn.180063c00
mov qword [rbp + 0x100], rax
lea rax, [rbp + 0x444]
add rax, 0xfe
mov word [rax], 0
mov eax, dword [rbp + 0x58]
movsxd rax, eax
imul rax, rax, 0x130
add rax, qword [rbp + 0xb0]
mov eax, dword [rax + 0x128]
cmp eax, 0x7f
ja 0x18000b498
mov eax, dword [rbp + 0x58]
movsxd rax, eax
imul rax, rax, 0x130
add rax, qword [rbp + 0xb0]
mov eax, dword [rax + 0x128]
movsxd rax, eax
mov qword [rbp + 0x140], rax
jmp 0x18000b4a3
mov qword [rbp + 0x140], 0x7f
lea rax, [rbp + 0x2c8]
mov edx, dword [rbp + 0x58]
movsxd rdx, edx
imul rdx, rdx, 0x130
add rdx, qword [rbp + 0xb0]
mov rdx, qword [rdx + 0x120]
mov rcx, qword [rbp + 0x140]
mov qword [rbp + 0x268], rcx
mov rcx, rax
mov rax, qword [rbp + 0x268]
mov r8, rax
call fcn.180066f00
mov qword [rbp + 0x150], rax
lea rax, [rbp + 0x2c8]
add rax, 0x7f
mov byte [rax], 0
jmp 0x18000b872
lea rax, [rbp + 0x3bc]
lea rdx, [0x180101478]
mov rcx, rax
call fcn.180062660
mov qword [rbp + 0x108], rax
lea rax, [rbp + 0x444]
mov edx, dword [rbp + 0x58]
movsxd rdx, edx
imul rdx, rdx, 0x130
add rdx, qword [rbp + 0xb0]
lea rdx, [rdx + 0x20]
mov ecx, 0x80
mov qword [rbp + 0x270], rcx
mov rcx, rax
mov rax, qword [rbp + 0x270]
mov r8, rax
call fcn.180063c00
mov qword [rbp + 0x128], rax
lea rax, [rbp + 0x444]
add rax, 0xfe
mov word [rax], 0
mov eax, dword [rbp + 0x58]
movsxd rax, eax
imul rax, rax, 0x130
add rax, qword [rbp + 0xb0]
mov eax, dword [rax + 0x128]
test eax, eax
je 0x18000b872
mov eax, dword [rbp + 0x58]
movsxd rax, eax
imul rax, rax, 0x130
add rax, qword [rbp + 0xb0]
mov edx, dword [rbp + 0x58]
movsxd rdx, edx
imul rdx, rdx, 0x130
add rdx, qword [rbp + 0xb0]
mov edx, dword [rdx + 0x128]
mov ecx, 1
mov ebx, 0
test edx, edx
cmovl ebx, ecx
add ebx, dword [rax + 0x128]
sar ebx, 1
cmp ebx, 0x7f
jb 0x18000b5eb
mov qword [rbp + 0x170], 0x7f
jmp 0x18000b63a
mov eax, dword [rbp + 0x58]
movsxd rax, eax
imul rax, rax, 0x130
add rax, qword [rbp + 0xb0]
mov edx, dword [rbp + 0x58]
movsxd rdx, edx
imul rdx, rdx, 0x130
add rdx, qword [rbp + 0xb0]
mov edx, dword [rdx + 0x128]
mov ecx, 1
mov ebx, 0
test edx, edx
cmovl ebx, ecx
add ebx, dword [rax + 0x128]
sar ebx, 1
movsxd rbx, ebx
mov qword [rbp + 0x170], rbx
lea rax, [rbp + 0x54c]
mov edx, dword [rbp + 0x58]
movsxd rdx, edx
imul rdx, rdx, 0x130
add rdx, qword [rbp + 0xb0]
mov rdx, qword [rdx + 0x120]
mov rcx, qword [rbp + 0x170]
mov qword [rbp + 0x278], rcx
mov rcx, rax
mov rax, qword [rbp + 0x278]
mov r8, rax
call fcn.180063c00
mov qword [rbp + 0x188], rax
lea rax, [rbp + 0x54c]
add rax, 0xfe
mov word [rax], 0
mov eax, dword [rbp + 0x58]
movsxd rax, eax
imul rax, rax, 0x130
add rax, qword [rbp + 0xb0]
mov rax, qword [rax + 0x120]
mov rcx, rax
call fcn.1800622d0
mov qword [rbp + 0x198], rax
mov eax, dword [rbp + 0x58]
movsxd rax, eax
imul rax, rax, 0x130
add rax, qword [rbp + 0xb0]
mov rdx, qword [rbp + 0x198]
imul rdx, rdx, 2
add rdx, qword [rax + 0x120]
add rdx, 2
mov qword [rbp + 0x1a0], rdx
lea rax, [rbp + 0x2c8]
mov qword [rbp + 0x1a8], rax
mov rax, qword [rbp + 0x1a0]
movzx eax, word [rax]
movzx eax, ax
test eax, eax
je 0x18000b872
mov rax, qword [rbp + 0x1a0]
movzx eax, word [rax]
movzx eax, ax
mov byte [rbp + 0x45], al
mov rax, qword [rbp + 0x1a8]
movsx edx, byte [rbp + 0x45]
mov byte [rax], dl
mov eax, 1
add rax, qword [rbp + 0x1a8]
mov qword [rbp + 0x1a8], rax
mov eax, 2
add rax, qword [rbp + 0x1a0]
mov qword [rbp + 0x1a0], rax
jmp 0x18000b6fe
lea rax, [rbp + 0x3bc]
lea rdx, [0x180101480]
mov rcx, rax
call fcn.180062660
mov qword [rbp + 0x110], rax
lea rax, [rbp + 0x54c]
mov edx, dword [rbp + 0x58]
movsxd rdx, edx
imul rdx, rdx, 0x130
add rdx, qword [rbp + 0xb0]
lea rdx, [rdx + 0x20]
mov ecx, 0x80
mov qword [rbp + 0x280], rcx
mov rcx, rax
mov rax, qword [rbp + 0x280]
mov r8, rax
call fcn.180063c00
mov qword [rbp + 0x130], rax
lea rax, [rbp + 0x54c]
add rax, 0xfe
mov word [rax], 0
mov eax, dword [rbp + 0x58]
movsxd rax, eax
imul rax, rax, 0x130
add rax, qword [rbp + 0xb0]
mov eax, dword [rax + 0x128]
cmp eax, 0x7f
ja 0x18000b810
mov eax, dword [rbp + 0x58]
movsxd rax, eax
imul rax, rax, 0x130
add rax, qword [rbp + 0xb0]
mov eax, dword [rax + 0x128]
movsxd rax, eax
mov qword [rbp + 0x160], rax
jmp 0x18000b81b
mov qword [rbp + 0x160], 0x7f
lea rax, [rbp + 0x2c8]
mov edx, dword [rbp + 0x58]
movsxd rdx, edx
imul rdx, rdx, 0x130
add rdx, qword [rbp + 0xb0]
mov rdx, qword [rdx + 0x120]
mov rcx, qword [rbp + 0x160]
mov qword [rbp + 0x288], rcx
mov rcx, rax
mov rax, qword [rbp + 0x288]
mov r8, rax
call fcn.180066f00
mov qword [rbp + 0x180], rax
lea rax, [rbp + 0x2c8]
add rax, 0x7f
mov byte [rax], 0
mov eax, dword [rbp + 0x48]
movsxd rax, eax
imul rax, rax, 0x380
add rax, qword [rbp + 0x740]
lea rdx, [rbp + 0x3bc]
mov ecx, 0x40
mov qword [rbp + 0x290], rcx
mov rcx, rax
mov rax, qword [rbp + 0x290]
mov r8, rax
call fcn.180063c00
mov qword [rbp + 0x158], rax
mov eax, dword [rbp + 0x48]
movsxd rax, eax
imul rax, rax, 0x380
add rax, qword [rbp + 0x740]
add rax, 0x7e
mov word [rax], 0
mov eax, dword [rbp + 0x48]
movsxd rax, eax
imul rax, rax, 0x380
add rax, qword [rbp + 0x740]
lea rax, [rax + 0x80]
lea rdx, [rbp + 0x444]
mov ecx, 0x100
mov qword [rbp + 0x298], rcx
mov rcx, rax
mov rax, qword [rbp + 0x298]
mov r8, rax
call fcn.180063c00
mov qword [rbp + 0x178], rax
mov eax, dword [rbp + 0x48]
movsxd rax, eax
imul rax, rax, 0x380
add rax, qword [rbp + 0x740]
add rax, 0x1fe
add rax, 0x80
mov word [rax], 0
mov eax, dword [rbp + 0x48]
movsxd rax, eax
imul rax, rax, 0x380
add rax, qword [rbp + 0x740]
lea rax, [rax + 0x280]
lea rdx, [rbp + 0x54c]
mov ecx, 0x40
mov qword [rbp + 0x2a0], rcx
mov rcx, rax
mov rax, qword [rbp + 0x2a0]
mov r8, rax
call fcn.180063c00
mov qword [rbp + 0x190], rax
mov eax, dword [rbp + 0x48]
movsxd rax, eax
imul rax, rax, 0x380
add rax, qword [rbp + 0x740]
add rax, 0x7e
add rax, 0x280
mov word [rax], 0
mov eax, 1
mov edx, 0
lea rcx, [rbp + 0x2c8]
mov ebx, 0xffffffff
mov esi, dword [rbp + 0x48]
movsxd rsi, esi
imul rsi, rsi, 0x380
add rsi, qword [rbp + 0x740]
lea rsi, [rsi + 0x300]
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x28], 0x40
mov rsi, qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov qword [rbp + 0x2a8], rcx
mov ecx, eax
mov rax, qword [rbp + 0x2a8]
mov r8, rax
mov r9d, ebx
call rsi
mov dword [rbp + 0x78], eax
mov eax, 1
add eax, dword [rbp + 0x48]
mov dword [rbp + 0x48], eax
jmp 0x18000a977
mov rax, qword [rbp + 0xb0]
mov rcx, rax
call fcn.1800622b0
mov rax, qword [sym.imp.ole32.dll_CoUninitialize]
call rax
mov eax, dword [rbp + 0x48]
mov dword [rbp + 0xa0], eax
lea rax, reloc.WS2_32.dll_ioctlsocket
mov rdx, rax
mov rcx, rbp
call fcn.180061140
mov rax, qword [rbp + 0x728]
xor rax, rbp
mov rcx, rax
call fcn.1800612f0
mov eax, dword [rbp + 0xa0]
mov rbx, qword [rbp + 0x2b0]
mov rsi, qword [rbp + 0x2b8]
lea rsp, [rbp + 0x730]
pop rbp
ret