Function at 0x40159e
Capabilities:
Populate syswhispers2 syscall list
Resolve function by parsing pe exports

Disassembly:
push rbp
push rbx
sub rsp, 0xc8
lea rbp, [rsp + 0x80]
mov eax, dword [0x004b1020]
test eax, eax
je 0x4015c3
mov eax, 1
jmp 0x40192b
mov dword [rbp - 0x4c], 0x60
mov eax, dword [rbp - 0x4c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x58], rax
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x10], rax
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x18]
mov qword [rbp + 8], rax
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x30], 0
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0x10]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x4016bd
mov rax, qword [rbp + 0x28]
mov rax, qword [rax + 0x30]
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0x30]
mov qword [rbp], rax
mov rax, qword [rbp]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x30]
add rax, rdx
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
add rax, 0x88
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
mov dword [rbp - 0x14], eax
cmp dword [rbp - 0x14], 0
je 0x4016a8
mov edx, dword [rbp - 0x14]
mov rax, qword [rbp + 0x30]
add rax, rdx
mov qword [rbp + 0x38], rax
mov rax, qword [rbp + 0x38]
mov eax, dword [rax + 0xc]
mov edx, eax
mov rax, qword [rbp + 0x30]
add rax, rdx
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax]
or eax, 0x20202020
cmp eax, 0x6c64746e
jne 0x4016ab
mov rax, qword [rbp - 0x20]
add rax, 4
mov eax, dword [rax]
or eax, 0x20202020
cmp eax, 0x6c642e6c
je 0x4016bc
jmp 0x4016ac
nop
jmp 0x4016ac
nop
mov rax, qword [rbp + 0x28]
mov rax, qword [rax]
mov qword [rbp + 0x28], rax
jmp 0x401605
nop
cmp qword [rbp + 0x38], 0
jne 0x4016ce
mov eax, 0
jmp 0x40192b
mov rax, qword [rbp + 0x38]
mov eax, dword [rax + 0x18]
mov dword [rbp + 0x24], eax
mov rax, qword [rbp + 0x38]
mov eax, dword [rax + 0x1c]
mov edx, eax
mov rax, qword [rbp + 0x30]
add rax, rdx
mov qword [rbp - 0x28], rax
mov rax, qword [rbp + 0x38]
mov eax, dword [rax + 0x20]
mov edx, eax
mov rax, qword [rbp + 0x30]
add rax, rdx
mov qword [rbp - 0x30], rax
mov rax, qword [rbp + 0x38]
mov eax, dword [rax + 0x24]
mov edx, eax
mov rax, qword [rbp + 0x30]
add rax, rdx
mov qword [rbp - 0x38], rax
mov dword [rbp + 0x20], 0
lea rax, [0x004b1024]
mov qword [rbp - 0x40], rax
mov eax, dword [rbp + 0x24]
sub eax, 1
mov eax, eax
lea rdx, [rax*4]
mov rax, qword [rbp - 0x30]
add rax, rdx
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp + 0x30]
add rax, rdx
mov qword [rbp - 0x48], rax
mov rax, qword [rbp - 0x48]
movzx eax, word [rax]
cmp ax, 0x775a
jne 0x4017c6
mov eax, dword [rbp + 0x20]
lea rdx, [rax*8]
mov rax, qword [rbp - 0x40]
lea rbx, [rdx + rax]
mov rax, qword [rbp - 0x48]
mov rcx, rax
call sym.SW2_HashSyscall_char_const_
mov dword [rbx], eax
mov eax, dword [rbp + 0x24]
sub eax, 1
mov eax, eax
lea rdx, [rax + rax]
mov rax, qword [rbp - 0x38]
add rax, rdx
movzx eax, word [rax]
movzx eax, ax
lea rdx, [rax*4]
mov rax, qword [rbp - 0x28]
add rax, rdx
mov edx, dword [rbp + 0x20]
lea rcx, [rdx*8]
mov rdx, qword [rbp - 0x40]
add rdx, rcx
mov eax, dword [rax]
mov dword [rdx + 4], eax
add dword [rbp + 0x20], 1
cmp dword [rbp + 0x20], 0x1f4
je 0x4017da
sub dword [rbp + 0x24], 1
cmp dword [rbp + 0x24], 0
setne al
test al, al
je 0x4017db
jmp 0x401726
nop
mov eax, dword [rbp + 0x20]
mov dword [0x004b1020], eax
mov dword [rbp + 0x1c], 0
mov eax, dword [0x004b1020]
sub eax, 1
cmp dword [rbp + 0x1c], eax
jae 0x401926
mov dword [rbp + 0x18], 0
mov eax, dword [0x004b1020]
sub eax, dword [rbp + 0x1c]
sub eax, 1
cmp dword [rbp + 0x18], eax
jae 0x40191d
mov eax, dword [rbp + 0x18]
lea rdx, [rax*8]
mov rax, qword [rbp - 0x40]
add rax, rdx
mov edx, dword [rax + 4]
mov eax, dword [rbp + 0x18]
add eax, 1
mov eax, eax
lea rcx, [rax*8]
mov rax, qword [rbp - 0x40]
add rax, rcx
mov eax, dword [rax + 4]
cmp edx, eax
jbe 0x401914
mov eax, dword [rbp + 0x18]
lea rdx, [rax*8]
mov rax, qword [rbp - 0x40]
add rax, rdx
mov eax, dword [rax]
mov dword [rbp - 0x60], eax
mov eax, dword [rbp + 0x18]
lea rdx, [rax*8]
mov rax, qword [rbp - 0x40]
add rax, rdx
mov eax, dword [rax + 4]
mov dword [rbp - 0x5c], eax
mov eax, dword [rbp + 0x18]
add eax, 1
mov eax, eax
lea rdx, [rax*8]
mov rax, qword [rbp - 0x40]
add rax, rdx
mov edx, dword [rbp + 0x18]
lea rcx, [rdx*8]
mov rdx, qword [rbp - 0x40]
add rdx, rcx
mov eax, dword [rax]
mov dword [rdx], eax
mov eax, dword [rbp + 0x18]
add eax, 1
mov eax, eax
lea rdx, [rax*8]
mov rax, qword [rbp - 0x40]
add rax, rdx
mov edx, dword [rbp + 0x18]
lea rcx, [rdx*8]
mov rdx, qword [rbp - 0x40]
add rdx, rcx
mov eax, dword [rax + 4]
mov dword [rdx + 4], eax
mov eax, dword [rbp + 0x18]
add eax, 1
mov eax, eax
lea rdx, [rax*8]
mov rax, qword [rbp - 0x40]
add rdx, rax
mov eax, dword [rbp - 0x60]
mov dword [rdx], eax
mov eax, dword [rbp + 0x18]
add eax, 1
mov eax, eax
lea rdx, [rax*8]
mov rax, qword [rbp - 0x40]
add rdx, rax
mov eax, dword [rbp - 0x5c]
mov dword [rdx + 4], eax
add dword [rbp + 0x18], 1
jmp 0x401804
add dword [rbp + 0x1c], 1
jmp 0x4017eb
mov eax, 1
add rsp, 0xc8
pop rbx
pop rbp
ret