Function at 0x18004fa80
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 [0x180143060], 0
je 0x18004fa9d
mov eax, 1
jmp 0x18005000a
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 0x18004fae8
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 0x18004fbc4
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 0x18004fb5f
jmp 0x18004fadb
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 0x18004fba6
jmp 0x18004fadb
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 4]
or eax, 0x20202020
cmp eax, 0x6c642e6c
jne 0x18004fbbf
jmp 0x18004fbc4
jmp 0x18004fadb
cmp qword [rsp + 0x68], 0
jne 0x18004fbd3
xor eax, eax
jmp 0x18005000a
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, [0x180143064]
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x40]
sub eax, 1
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 0x18004fdb0
mov rcx, qword [rsp + 0xa0]
call fcn.18004f980
mov edi, eax
lea rcx, [0x1800aeec8]
call fcn.18008c29c
mov ebx, eax
lea rcx, [0x1800aee84]
call fcn.18008c29c
sub ebx, eax
lea rcx, [0x1800aeed0]
call fcn.18008c29c
add ebx, eax
lea rcx, [0x1800aeed8]
call fcn.18008c29c
sub ebx, eax
lea rcx, [0x1800aeee0]
call fcn.18008c29c
sub ebx, eax
lea rcx, [0x1800aeee8]
call fcn.18008c29c
sub ebx, eax
lea rcx, [0x1800aeef0]
call fcn.18008c29c
add ebx, eax
lea rcx, [0x1800aef00]
call fcn.18008c29c
mov ecx, ebx
add ecx, eax
mov eax, dword [rsp + 0x30]
sub eax, ecx
mov ecx, eax
mov rax, qword [rsp + 0x58]
mov dword [rax + rcx*8], edi
mov edi, dword [rsp + 0x40]
sub edi, 1
lea rcx, [0x1800aef10]
call fcn.18008c29c
mov ebx, eax
lea rcx, [0x1800aef18]
call fcn.18008c29c
sub ebx, eax
lea rcx, [0x1800aef20]
call fcn.18008c29c
add ebx, eax
lea rcx, [0x1800aef28]
call fcn.18008c29c
sub ebx, eax
lea rcx, [0x1800aef30]
call fcn.18008c29c
sub ebx, eax
lea rcx, [0x1800aef38]
call fcn.18008c29c
sub ebx, eax
lea rcx, [0x1800aef40]
call fcn.18008c29c
add ebx, eax
lea rcx, [0x1800aef50]
call fcn.18008c29c
mov ecx, ebx
add ecx, eax
mov eax, edi
sub eax, ecx
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 0x18004fdb0
jmp 0x18004fdc6
mov eax, dword [rsp + 0x40]
sub eax, 1
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x18004fc32
mov eax, dword [rsp + 0x30]
mov dword [0x180143060], eax
mov dword [rsp + 0x30], 0
jmp 0x18004fde5
mov eax, dword [rsp + 0x30]
add eax, 1
mov dword [rsp + 0x30], eax
mov eax, dword [0x180143060]
sub eax, 1
cmp dword [rsp + 0x30], eax
jae 0x180050005
mov dword [rsp + 0xa8], 0
jmp 0x18004fe16
mov eax, dword [rsp + 0xa8]
add eax, 1
mov dword [rsp + 0xa8], eax
mov ecx, dword [rsp + 0x30]
mov eax, dword [0x180143060]
sub eax, ecx
sub eax, 1
cmp dword [rsp + 0xa8], eax
jae 0x180050000
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 0x18004fffb
lea rcx, [0x1800aef60]
call fcn.18008c29c
mov ebx, eax
lea rcx, [0x1800aef1c]
call fcn.18008c29c
sub ebx, eax
lea rcx, [0x1800aef68]
call fcn.18008c29c
add ebx, eax
lea rcx, [0x1800aef70]
call fcn.18008c29c
sub ebx, eax
lea rcx, [0x1800aef78]
call fcn.18008c29c
sub ebx, eax
lea rcx, [0x1800aef80]
call fcn.18008c29c
sub ebx, eax
lea rcx, [0x1800aef88]
call fcn.18008c29c
add ebx, eax
lea rcx, [0x1800aef98]
call fcn.18008c29c
mov ecx, ebx
add ecx, eax
mov eax, dword [rsp + 0xa8]
sub eax, ecx
mov ecx, eax
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 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 + 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
mov edi, dword [rsp + 0xa8]
add edi, 1
lea rcx, [0x1800aefa8]
call fcn.18008c29c
mov ebx, eax
lea rcx, [0x1800aefb0]
call fcn.18008c29c
sub ebx, eax
lea rcx, [0x1800aefb8]
call fcn.18008c29c
add ebx, eax
lea rcx, [0x1800aefc0]
call fcn.18008c29c
sub ebx, eax
lea rcx, [0x1800aefc8]
call fcn.18008c29c
sub ebx, eax
lea rcx, [0x1800aefd0]
call fcn.18008c29c
sub ebx, eax
lea rcx, str.1021
call fcn.18008c29c
add ebx, eax
lea rcx, [0x1800aefe8]
call fcn.18008c29c
mov ecx, ebx
add ecx, eax
mov eax, edi
sub eax, ecx
mov edx, eax
mov rcx, qword [rsp + 0x58]
mov eax, dword [rsp + 0xb4]
mov dword [rcx + rdx*8 + 4], eax
jmp 0x18004fe05
jmp 0x18004fdda
mov eax, 1
add rsp, 0xc8
pop rdi
pop rbx
ret