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

Disassembly:
push rbp
push rbx
sub rsp, 0xd8
lea rbp, [rsp + 0x80]
lea rax, [0x004bd980]
mov eax, dword [rax]
test eax, eax
je 0x40197f
mov eax, 1
jmp 0x401d8a
mov dword [rbp - 0x3c], 0x60
mov eax, dword [rbp - 0x3c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x48], rax
mov rax, qword [rbp - 0x48]
mov qword [rbp + 0x20], rax
mov rax, qword [rbp + 0x20]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x40], 0
mov rax, qword [rbp + 0x18]
mov rax, qword [rax + 0x10]
mov qword [rbp + 0x38], rax
jmp 0x401a66
mov rax, qword [rbp + 0x38]
mov rax, qword [rax + 0x30]
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0x10], rax
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
cdqe
mov rdx, qword [rbp + 0x40]
add rax, rdx
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
add rax, 0x88
mov qword [rbp], rax
mov rax, qword [rbp]
mov eax, dword [rax]
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
je 0x401a57
mov eax, dword [rbp - 4]
mov rdx, qword [rbp + 0x40]
add rax, rdx
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0xc]
mov edx, eax
mov rax, qword [rbp + 0x40]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
or eax, 0x20202020
cmp eax, 0x6c64746e
jne 0x401a5a
mov rax, qword [rbp - 0x10]
add rax, 4
mov eax, dword [rax]
or eax, 0x20202020
cmp eax, 0x6c642e6c
je 0x401a79
jmp 0x401a5b
nop
jmp 0x401a5b
nop
mov rax, qword [rbp + 0x38]
mov rax, qword [rax]
mov qword [rbp + 0x38], rax
mov rax, qword [rbp + 0x38]
mov rax, qword [rax + 0x30]
test rax, rax
jne 0x4019c6
jmp 0x401a7a
nop
cmp qword [rbp + 0x48], 0
jne 0x401a8b
mov eax, 0
jmp 0x401d8a
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x18]
mov dword [rbp + 0x34], eax
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x1c]
mov edx, eax
mov rax, qword [rbp + 0x40]
add rax, rdx
mov qword [rbp - 0x18], rax
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x20]
mov edx, eax
mov rax, qword [rbp + 0x40]
add rax, rdx
mov qword [rbp - 0x20], rax
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x24]
mov edx, eax
mov rax, qword [rbp + 0x40]
add rax, rdx
mov qword [rbp - 0x28], rax
mov dword [rbp + 0x30], 0
lea rax, [0x004bd980]
lea rax, [rax + 8]
mov qword [rbp - 0x30], rax
mov eax, dword [rbp + 0x34]
sub eax, 1
mov eax, eax
lea rdx, [rax*4]
mov rax, qword [rbp - 0x20]
add rax, rdx
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp + 0x40]
add rax, rdx
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 0x38]
movzx eax, word [rax]
cmp ax, 0x775a
jne 0x401bc4
mov eax, dword [rbp + 0x30]
shl rax, 4
mov rdx, rax
mov rax, qword [rbp - 0x30]
lea rbx, [rdx + rax]
mov rax, qword [rbp - 0x38]
mov rcx, rax
call fcn.00401810
mov dword [rbx], eax
mov eax, dword [rbp + 0x34]
sub eax, 1
mov eax, eax
lea rdx, [rax + rax]
mov rax, qword [rbp - 0x28]
add rax, rdx
movzx eax, word [rax]
movzx eax, ax
lea rdx, [rax*4]
mov rax, qword [rbp - 0x18]
add rdx, rax
mov eax, dword [rbp + 0x30]
shl rax, 4
mov rcx, rax
mov rax, qword [rbp - 0x30]
add rax, rcx
mov edx, dword [rdx]
mov dword [rax + 4], edx
mov eax, dword [rbp + 0x30]
shl rax, 4
mov rdx, rax
mov rax, qword [rbp - 0x30]
add rax, rdx
mov eax, dword [rax + 4]
mov edx, eax
mov rax, qword [rbp + 0x40]
add rax, rdx
mov rcx, rax
mov eax, dword [rbp + 0x30]
shl rax, 4
mov rdx, rax
mov rax, qword [rbp - 0x30]
lea rbx, [rdx + rax]
call fcn.0040186e
mov qword [rbx + 8], rax
add dword [rbp + 0x30], 1
cmp dword [rbp + 0x30], 0x258
je 0x401bd4
sub dword [rbp + 0x34], 1
cmp dword [rbp + 0x34], 0
jne 0x401ae7
jmp 0x401bd5
nop
lea rax, [0x004bd980]
mov edx, dword [rbp + 0x30]
mov dword [rax], edx
mov dword [rbp + 0x2c], 0
jmp 0x401d70
mov dword [rbp + 0x28], 0
jmp 0x401d54
mov eax, dword [rbp + 0x28]
shl rax, 4
mov rdx, rax
mov rax, qword [rbp - 0x30]
add rax, rdx
mov edx, dword [rax + 4]
mov eax, dword [rbp + 0x28]
add eax, 1
mov eax, eax
shl rax, 4
mov rcx, rax
mov rax, qword [rbp - 0x30]
add rax, rcx
mov eax, dword [rax + 4]
cmp edx, eax
jbe 0x401d50
mov eax, dword [rbp + 0x28]
shl rax, 4
mov rdx, rax
mov rax, qword [rbp - 0x30]
add rax, rdx
mov eax, dword [rax]
mov dword [rbp - 0x60], eax
mov eax, dword [rbp + 0x28]
shl rax, 4
mov rdx, rax
mov rax, qword [rbp - 0x30]
add rax, rdx
mov eax, dword [rax + 4]
mov dword [rbp - 0x5c], eax
mov eax, dword [rbp + 0x28]
shl rax, 4
mov rdx, rax
mov rax, qword [rbp - 0x30]
add rax, rdx
mov rax, qword [rax + 8]
mov qword [rbp - 0x58], rax
mov eax, dword [rbp + 0x28]
add eax, 1
mov eax, eax
shl rax, 4
mov rdx, rax
mov rax, qword [rbp - 0x30]
add rdx, rax
mov eax, dword [rbp + 0x28]
shl rax, 4
mov rcx, rax
mov rax, qword [rbp - 0x30]
add rax, rcx
mov edx, dword [rdx]
mov dword [rax], edx
mov eax, dword [rbp + 0x28]
add eax, 1
mov eax, eax
shl rax, 4
mov rdx, rax
mov rax, qword [rbp - 0x30]
add rdx, rax
mov eax, dword [rbp + 0x28]
shl rax, 4
mov rcx, rax
mov rax, qword [rbp - 0x30]
add rax, rcx
mov edx, dword [rdx + 4]
mov dword [rax + 4], edx
mov eax, dword [rbp + 0x28]
add eax, 1
mov eax, eax
shl rax, 4
mov rdx, rax
mov rax, qword [rbp - 0x30]
add rdx, rax
mov eax, dword [rbp + 0x28]
shl rax, 4
mov rcx, rax
mov rax, qword [rbp - 0x30]
add rax, rcx
mov rdx, qword [rdx + 8]
mov qword [rax + 8], rdx
mov eax, dword [rbp + 0x28]
add eax, 1
mov eax, eax
shl rax, 4
mov rdx, rax
mov rax, qword [rbp - 0x30]
add rax, rdx
mov edx, dword [rbp - 0x60]
mov dword [rax], edx
mov eax, dword [rbp + 0x28]
add eax, 1
mov eax, eax
shl rax, 4
mov rdx, rax
mov rax, qword [rbp - 0x30]
add rax, rdx
mov edx, dword [rbp - 0x5c]
mov dword [rax + 4], edx
mov eax, dword [rbp + 0x28]
add eax, 1
mov eax, eax
shl rax, 4
mov rdx, rax
mov rax, qword [rbp - 0x30]
add rax, rdx
mov rdx, qword [rbp - 0x58]
mov qword [rax + 8], rdx
add dword [rbp + 0x28], 1
lea rax, [0x004bd980]
mov eax, dword [rax]
sub eax, dword [rbp + 0x2c]
sub eax, 1
cmp dword [rbp + 0x28], eax
jb 0x401bf9
add dword [rbp + 0x2c], 1
lea rax, [0x004bd980]
mov eax, dword [rax]
sub eax, 1
cmp dword [rbp + 0x2c], eax
jb 0x401bed
mov eax, 1
add rsp, 0xd8
pop rbx
pop rbp
ret