Function at 0x40166b
Capabilities:
Populate syswhispers2 syscall list

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xc0
mov eax, dword [0x0040d040]
cmp eax, 0
je 0x40168f
mov eax, 1
jmp 0x401aa4
mov eax, 0x60
mov r10, rax
mov rcx, r10
call fcn.00401b27
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
add rax, 0x18
mov rcx, qword [rax]
mov qword [rbp - 0x10], rcx
movabs rax, 0
mov qword [rbp - 0x18], rax
movabs rax, 0
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x10]
add rax, 8
add rax, 8
mov rcx, qword [rax]
mov qword [rbp - 0x28], rcx
mov rax, qword [rbp - 0x28]
add rax, 0x30
mov rcx, qword [rax]
cmp rcx, 0
je 0x4017c7
jmp 0x401708
mov rax, qword [rbp - 0x28]
mov rcx, qword [rax]
mov qword [rbp - 0x28], rcx
jmp 0x4016e1
mov rax, qword [rbp - 0x28]
add rax, 0x30
mov rcx, qword [rax]
mov qword [rbp - 0x20], rcx
mov rax, qword [rbp - 0x20]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x30]
add rax, 0x3c
mov ecx, dword [rax]
movsxd rcx, ecx
mov rax, qword [rbp - 0x20]
add rax, rcx
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 0x38]
add rax, 0x18
add rax, 0x70
mov qword [rbp - 0x40], rax
mov rax, qword [rbp - 0x40]
mov ecx, dword [rax]
mov dword [rbp - 0x44], ecx
mov eax, dword [rbp - 0x44]
cmp eax, 0
jne 0x401761
jmp 0x4016fb
mov eax, dword [rbp - 0x44]
mov rcx, qword [rbp - 0x20]
add rcx, rax
mov qword [rbp - 0x18], rcx
mov rax, qword [rbp - 0x18]
add rax, 0xc
mov ecx, dword [rax]
mov rax, qword [rbp - 0x20]
add rax, rcx
mov qword [rbp - 0x50], rax
mov rax, qword [rbp - 0x50]
mov ecx, dword [rax]
or ecx, 0x20202020
cmp ecx, 0x6c64746e
je 0x4017a1
jmp 0x4016fb
mov rax, qword [rbp - 0x50]
add rax, 4
mov ecx, dword [rax]
or ecx, 0x20202020
cmp ecx, 0x6c642e6c
jne 0x4017c2
jmp 0x4017c7
jmp 0x4016fb
mov rax, qword [rbp - 0x18]
cmp rax, 0
jne 0x4017df
mov eax, 0
jmp 0x401aa4
mov rax, qword [rbp - 0x18]
add rax, 0x18
mov ecx, dword [rax]
mov dword [rbp - 0x54], ecx
mov rax, qword [rbp - 0x18]
add rax, 0x1c
mov ecx, dword [rax]
mov rax, qword [rbp - 0x20]
add rax, rcx
mov qword [rbp - 0x60], rax
mov rax, qword [rbp - 0x18]
add rax, 0x20
mov ecx, dword [rax]
mov rax, qword [rbp - 0x20]
add rax, rcx
mov qword [rbp - 0x68], rax
mov rax, qword [rbp - 0x18]
add rax, 0x24
mov ecx, dword [rax]
mov rax, qword [rbp - 0x20]
add rax, rcx
mov qword [rbp - 0x70], rax
mov eax, 0
mov dword [rbp - 0x74], eax
lea rax, [0x0040d044]
mov qword [rbp - 0x80], rax
mov eax, dword [rbp - 0x54]
sub eax, 1
shl rax, 2
mov rcx, qword [rbp - 0x68]
add rcx, rax
mov eax, dword [rcx]
mov rcx, qword [rbp - 0x20]
add rcx, rax
mov qword [rbp - 0x88], rcx
mov rax, qword [rbp - 0x88]
movzx ecx, word [rax]
cmp ecx, 0x775a
jne 0x4018f9
mov eax, dword [rbp - 0x74]
shl rax, 3
mov rcx, qword [rbp - 0x80]
add rcx, rax
mov rax, qword [rbp - 0x88]
mov r10, rax
mov qword [rbp - 0x90], rcx
mov rcx, r10
call fcn.004015fa
mov rcx, qword [rbp - 0x90]
mov dword [rcx], eax
mov eax, dword [rbp - 0x74]
shl rax, 3
mov rcx, qword [rbp - 0x80]
add rcx, rax
add rcx, 4
mov eax, dword [rbp - 0x54]
sub eax, 1
shl rax, 1
mov rdx, qword [rbp - 0x70]
add rdx, rax
movzx eax, word [rdx]
shl rax, 2
mov rdx, qword [rbp - 0x60]
add rdx, rax
mov eax, dword [rdx]
mov dword [rcx], eax
mov eax, dword [rbp - 0x74]
mov ecx, eax
add eax, 1
mov dword [rbp - 0x74], eax
mov eax, dword [rbp - 0x74]
cmp eax, 0x1f4
jne 0x4018f9
jmp 0x40190b
mov eax, dword [rbp - 0x54]
add eax, 0xffffffff
mov dword [rbp - 0x54], eax
cmp eax, 0
jne 0x40183e
mov eax, dword [rbp - 0x74]
mov dword [0x0040d040], eax
mov eax, 0
mov dword [rbp - 0x94], eax
mov eax, dword [0x0040d040]
sub eax, 1
mov ecx, dword [rbp - 0x94]
cmp ecx, eax
jae 0x401a9f
jmp 0x40194e
mov eax, dword [rbp - 0x94]
mov ecx, eax
add eax, 1
mov dword [rbp - 0x94], eax
jmp 0x40191f
mov eax, 0
mov dword [rbp - 0x98], eax
mov eax, dword [0x0040d040]
mov ecx, dword [rbp - 0x94]
sub eax, ecx
sub eax, 1
mov ecx, dword [rbp - 0x98]
cmp ecx, eax
jae 0x401a9a
jmp 0x401990
mov eax, dword [rbp - 0x98]
mov ecx, eax
add eax, 1
mov dword [rbp - 0x98], eax
jmp 0x401959
mov eax, dword [rbp - 0x98]
shl rax, 3
mov rcx, qword [rbp - 0x80]
add rcx, rax
add rcx, 4
mov eax, dword [rbp - 0x98]
add eax, 1
shl rax, 3
mov rdx, qword [rbp - 0x80]
add rdx, rax
add rdx, 4
mov eax, dword [rcx]
mov ecx, dword [rdx]
cmp eax, ecx
jbe 0x401a95
mov eax, dword [rbp - 0x98]
shl rax, 3
mov rcx, qword [rbp - 0x80]
add rcx, rax
mov eax, dword [rcx]
mov dword [rbp - 0xa0], eax
mov eax, dword [rbp - 0x98]
shl rax, 3
mov rcx, qword [rbp - 0x80]
add rcx, rax
add rcx, 4
mov eax, dword [rcx]
mov dword [rbp - 0x9c], eax
mov eax, dword [rbp - 0x98]
shl rax, 3
mov rcx, qword [rbp - 0x80]
add rcx, rax
mov eax, dword [rbp - 0x98]
add eax, 1
shl rax, 3
mov rdx, qword [rbp - 0x80]
add rdx, rax
mov eax, dword [rdx]
mov dword [rcx], eax
mov eax, dword [rbp - 0x98]
shl rax, 3
mov rcx, qword [rbp - 0x80]
add rcx, rax
add rcx, 4
mov eax, dword [rbp - 0x98]
add eax, 1
shl rax, 3
mov rdx, qword [rbp - 0x80]
add rdx, rax
add rdx, 4
mov eax, dword [rdx]
mov dword [rcx], eax
mov eax, dword [rbp - 0x98]
add eax, 1
shl rax, 3
mov rcx, qword [rbp - 0x80]
add rcx, rax
mov eax, dword [rbp - 0xa0]
mov dword [rcx], eax
mov eax, dword [rbp - 0x98]
add eax, 1
shl rax, 3
mov rcx, qword [rbp - 0x80]
add rcx, rax
add rcx, 4
mov eax, dword [rbp - 0x9c]
mov dword [rcx], eax
jmp 0x40197d
jmp 0x40193b
mov eax, 1
leave
ret