Function at 0x180017700
Capabilities:
Access peb ldr_data
Get process filename
Populate syswhispers2 syscall list
Resolve function by parsing pe exports

Disassembly:
push rbx
push rdi
sub rsp, 0xc8
cmp dword [0x1800ac060], 0
je 0x18001771d
mov eax, 1
jmp 0x180017e46
mov rax, qword gs:[0x60]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x48], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x20], rax
jmp 0x180017768
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
cmp qword [rax + 0x30], 0
je 0x180017844
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
movsxd rcx, dword [rax + 0x3c]
mov rax, qword [rsp + 0x48]
add rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
add rax, 0x88
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov eax, dword [rax]
mov dword [rsp + 0x80], eax
cmp dword [rsp + 0x80], 0
jne 0x1800177df
jmp 0x18001775b
mov ecx, dword [rsp + 0x80]
mov rax, qword [rsp + 0x48]
add rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov ecx, dword [rax + 0xc]
mov rax, qword [rsp + 0x48]
add rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov eax, dword [rax]
or eax, 0x20202020
cmp eax, 0x6c64746e
je 0x180017826
jmp 0x18001775b
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 4]
or eax, 0x20202020
cmp eax, 0x6c642e6c
jne 0x18001783f
jmp 0x180017844
jmp 0x18001775b
cmp qword [rsp + 0x68], 0
jne 0x180017853
xor eax, eax
jmp 0x180017e46
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x68]
mov ecx, dword [rax + 0x1c]
mov rax, qword [rsp + 0x48]
add rax, rcx
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x68]
mov ecx, dword [rax + 0x20]
mov rax, qword [rsp + 0x48]
add rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x68]
mov ecx, dword [rax + 0x24]
mov rax, qword [rsp + 0x48]
add rax, rcx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0
lea rax, [0x1800ac064]
mov qword [rsp + 0x58], rax
mov edi, dword [rsp + 0x40]
sub edi, 1
lea rcx, [0x180075fb8]
call fcn.1800536b0
mov ebx, eax
lea rcx, [0x180075fc8]
call fcn.1800536b0
add ebx, eax
lea rcx, [0x180075fd8]
call fcn.1800536b0
sub ebx, eax
lea rcx, [0x180075fe8]
call fcn.1800536b0
add ebx, eax
lea rcx, [0x180075ff8]
call fcn.1800536b0
add ebx, eax
lea rcx, [0x180076008]
call fcn.1800536b0
add ebx, eax
lea rcx, [0x180076018]
call fcn.1800536b0
add ebx, eax
lea rcx, [0x180076028]
call fcn.1800536b0
sub ebx, eax
lea rcx, [0x180076038]
call fcn.1800536b0
add ebx, eax
lea rcx, [0x180076048]
call fcn.1800536b0
add ebx, eax
lea rcx, [0x180076058]
call fcn.1800536b0
add ebx, eax
lea rcx, [0x180076068]
call fcn.1800536b0
add ebx, eax
lea rcx, [0x180076078]
call fcn.1800536b0
sub ebx, eax
lea rcx, [0x180076088]
call fcn.1800536b0
sub ebx, eax
lea rcx, [0x180076098]
call fcn.1800536b0
add ebx, eax
lea rcx, [0x1800760a8]
call fcn.1800536b0
mov ecx, ebx
sub ecx, eax
mov eax, edi
sub eax, ecx
mov ecx, eax
mov rax, qword [rsp + 0x60]
mov ecx, dword [rax + rcx*4]
mov rax, qword [rsp + 0x48]
add rax, rcx
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
movzx eax, word [rax]
cmp eax, 0x775a
jne 0x180017b0f
mov rcx, qword [rsp + 0xa0]
call fcn.1800174e0
mov r11d, eax
mov ecx, dword [rsp + 0x30]
mov rax, qword [rsp + 0x58]
mov dword [rax + rcx*8], r11d
lea rcx, [0x1800760b8]
call fcn.1800536b0
mov ebx, eax
lea rcx, [0x1800760c8]
call fcn.1800536b0
add ebx, eax
lea rcx, [0x1800760d8]
call fcn.1800536b0
sub ebx, eax
lea rcx, [0x1800760e8]
call fcn.1800536b0
add ebx, eax
lea rcx, [0x1800760f8]
call fcn.1800536b0
add ebx, eax
lea rcx, [0x180076108]
call fcn.1800536b0
add ebx, eax
lea rcx, [0x180076118]
call fcn.1800536b0
add ebx, eax
lea rcx, [0x180076128]
call fcn.1800536b0
sub ebx, eax
lea rcx, [0x180076138]
call fcn.1800536b0
add ebx, eax
lea rcx, [0x180076148]
call fcn.1800536b0
add ebx, eax
lea rcx, [0x180076158]
call fcn.1800536b0
add ebx, eax
lea rcx, [0x180076168]
call fcn.1800536b0
add ebx, eax
lea rcx, [0x180076178]
call fcn.1800536b0
sub ebx, eax
lea rcx, [0x180076188]
call fcn.1800536b0
sub ebx, eax
lea rcx, [0x180076198]
call fcn.1800536b0
add ebx, eax
lea rcx, [0x1800761a8]
call fcn.1800536b0
mov ecx, ebx
sub ecx, eax
mov eax, dword [rsp + 0x40]
lea eax, [rax + rcx - 1]
mov ecx, eax
mov rax, qword [rsp + 0x38]
movzx r8d, word [rax + rcx*2]
mov edx, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + r8*4]
mov dword [rcx + rdx*8 + 4], eax
mov eax, dword [rsp + 0x30]
add eax, 1
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x1f4
jne 0x180017b0f
jmp 0x180017b25
mov eax, dword [rsp + 0x40]
sub eax, 1
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x1800178b2
mov eax, dword [rsp + 0x30]
mov dword [0x1800ac060], eax
mov dword [rsp + 0x30], 0
jmp 0x180017b44
mov eax, dword [rsp + 0x30]
add eax, 1
mov dword [rsp + 0x30], eax
mov eax, dword [0x1800ac060]
sub eax, 1
cmp dword [rsp + 0x30], eax
jae 0x180017e41
mov dword [rsp + 0xa8], 0
jmp 0x180017b75
mov eax, dword [rsp + 0xa8]
add eax, 1
mov dword [rsp + 0xa8], eax
mov ecx, dword [rsp + 0x30]
mov eax, dword [0x1800ac060]
sub eax, ecx
sub eax, 1
cmp dword [rsp + 0xa8], eax
jae 0x180017e3c
mov r8d, dword [rsp + 0xa8]
mov eax, dword [rsp + 0xa8]
add eax, 1
mov edx, eax
mov rcx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + rdx*8 + 4]
cmp dword [rcx + r8*8 + 4], eax
jbe 0x180017e37
mov ecx, dword [rsp + 0xa8]
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + rcx*8]
mov dword [rsp + 0xb0], eax
mov ecx, dword [rsp + 0xa8]
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + rcx*8 + 4]
mov dword [rsp + 0xb4], eax
mov eax, dword [rsp + 0xa8]
add eax, 1
mov r8d, eax
mov edx, dword [rsp + 0xa8]
mov rcx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + r8*8]
mov dword [rcx + rdx*8], eax
mov edi, dword [rsp + 0xa8]
add edi, 1
lea rcx, [0x1800761b8]
call fcn.1800536b0
mov ebx, eax
lea rcx, [0x1800761c8]
call fcn.1800536b0
add ebx, eax
lea rcx, [0x1800761d8]
call fcn.1800536b0
sub ebx, eax
lea rcx, [0x1800761e8]
call fcn.1800536b0
add ebx, eax
lea rcx, [0x1800761f8]
call fcn.1800536b0
add ebx, eax
lea rcx, [0x180076208]
call fcn.1800536b0
add ebx, eax
lea rcx, [0x180076218]
call fcn.1800536b0
add ebx, eax
lea rcx, [0x180076228]
call fcn.1800536b0
sub ebx, eax
lea rcx, [0x180076238]
call fcn.1800536b0
add ebx, eax
lea rcx, [0x180076248]
call fcn.1800536b0
add ebx, eax
lea rcx, [0x180076258]
call fcn.1800536b0
add ebx, eax
lea rcx, [0x180076268]
call fcn.1800536b0
add ebx, eax
lea rcx, [0x180076278]
call fcn.1800536b0
sub ebx, eax
lea rcx, [0x180076288]
call fcn.1800536b0
sub ebx, eax
lea rcx, [0x180076298]
call fcn.1800536b0
add ebx, eax
lea rcx, [0x1800762a8]
call fcn.1800536b0
mov ecx, ebx
sub ecx, eax
mov eax, edi
sub eax, ecx
mov r8d, eax
mov edx, dword [rsp + 0xa8]
mov rcx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + r8*8 + 4]
mov dword [rcx + rdx*8 + 4], eax
mov eax, dword [rsp + 0xa8]
add eax, 1
mov edx, eax
mov rcx, qword [rsp + 0x58]
mov eax, dword [rsp + 0xb0]
mov dword [rcx + rdx*8], eax
lea rcx, [0x1800762b8]
call fcn.1800536b0
mov ebx, eax
lea rcx, [0x1800762c8]
call fcn.1800536b0
add ebx, eax
lea rcx, [0x1800762d8]
call fcn.1800536b0
sub ebx, eax
lea rcx, [0x1800762e8]
call fcn.1800536b0
add ebx, eax
lea rcx, [0x1800762f8]
call fcn.1800536b0
add ebx, eax
lea rcx, [0x180076308]
call fcn.1800536b0
add ebx, eax
lea rcx, [0x180076318]
call fcn.1800536b0
add ebx, eax
lea rcx, [0x180076328]
call fcn.1800536b0
sub ebx, eax
lea rcx, [0x180076338]
call fcn.1800536b0
add ebx, eax
lea rcx, [0x180076348]
call fcn.1800536b0
add ebx, eax
lea rcx, [0x180076358]
call fcn.1800536b0
add ebx, eax
lea rcx, [0x180076368]
call fcn.1800536b0
add ebx, eax
lea rcx, [0x180076378]
call fcn.1800536b0
sub ebx, eax
lea rcx, [0x180076388]
call fcn.1800536b0
sub ebx, eax
lea rcx, [0x180076398]
call fcn.1800536b0
add ebx, eax
lea rcx, [0x1800763a8]
call fcn.1800536b0
mov ecx, ebx
sub ecx, eax
mov eax, dword [rsp + 0xa8]
lea eax, [rax + rcx + 1]
mov edx, eax
mov rcx, qword [rsp + 0x58]
mov eax, dword [rsp + 0xb4]
mov dword [rcx + rdx*8 + 4], eax
jmp 0x180017b64
jmp 0x180017b39
mov eax, 1
add rsp, 0xc8
pop rdi
pop rbx
ret