Function at 0x1400040c0
Capabilities:
Access peb ldr_data
Populate syswhispers2 syscall list
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0xc8
cmp dword [0x140007048], 0
je 0x1400040e4
mov dword [rsp + 0xc4], 1
jmp 0x1400044b9
mov rax, qword gs:[0x60]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xa0], 0
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
cmp qword [rax + 0x30], 0
je 0x140004249
mov rax, qword [rsp + 0x98]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x90]
movsxd rcx, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
add rax, 0x18
add rax, 0x70
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax]
mov dword [rsp + 0x7c], eax
cmp dword [rsp + 0x7c], 0
jne 0x1400041c1
jmp 0x140004231
mov rax, qword [rsp + 0xa0]
mov ecx, dword [rsp + 0x7c]
add rax, rcx
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0xa8]
mov ecx, dword [rcx + 0xc]
add rax, rcx
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov eax, dword [rax]
or eax, 0x20202020
cmp eax, 0x6c64746e
je 0x14000420f
jmp 0x140004231
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 4]
or eax, 0x20202020
cmp eax, 0x6c642e6c
jne 0x14000422c
jmp 0x140004249
jmp 0x140004231
mov rax, qword [rsp + 0x98]
mov rax, qword [rax]
mov qword [rsp + 0x98], rax
jmp 0x140004135
cmp qword [rsp + 0xa8], 0
jne 0x140004268
mov dword [rsp + 0xc4], 0
jmp 0x1400044b9
mov rax, qword [rsp + 0xa8]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x6c], eax
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0xa8]
mov ecx, dword [rcx + 0x1c]
add rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0xa8]
mov ecx, dword [rcx + 0x20]
add rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0xa8]
mov ecx, dword [rcx + 0x24]
add rax, rcx
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x4c], 0
lea rax, [0x140007048]
add rax, 4
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x58]
mov edx, dword [rsp + 0x6c]
sub edx, 1
mov edx, edx
mov ecx, dword [rcx + rdx*4]
add rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax]
cmp eax, 0x775a
jne 0x140004376
mov rcx, qword [rsp + 0x38]
call fcn.140004020
mov edx, eax
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x4c]
mov dword [rax + rcx*8], edx
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
mov edx, dword [rsp + 0x6c]
sub edx, 1
mov edx, edx
movzx ecx, word [rcx + rdx*2]
mov edx, dword [rax + rcx*4]
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x4c]
mov dword [rax + rcx*8 + 4], edx
mov eax, dword [rsp + 0x4c]
add eax, 1
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0x1f4
jne 0x140004371
jmp 0x14000438f
jmp 0x140004376
jmp 0x14000437b
mov eax, dword [rsp + 0x6c]
add eax, 0xffffffff
mov dword [rsp + 0x6c], eax
cmp eax, 0
jne 0x1400042e0
mov eax, dword [rsp + 0x4c]
mov dword [0x140007048], eax
mov dword [rsp + 0x4c], 0
mov eax, dword [rsp + 0x4c]
mov ecx, dword [0x140007048]
sub ecx, 1
cmp eax, ecx
jae 0x1400044ae
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x34]
mov ecx, dword [0x140007048]
sub ecx, dword [rsp + 0x4c]
sub ecx, 1
cmp eax, ecx
jae 0x140004499
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x34]
mov eax, dword [rax + rcx*8 + 4]
mov rcx, qword [rsp + 0x40]
mov edx, dword [rsp + 0x34]
add edx, 1
mov edx, edx
cmp eax, dword [rcx + rdx*8 + 4]
jbe 0x140004484
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x34]
mov eax, dword [rax + rcx*8]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x34]
mov eax, dword [rax + rcx*8 + 4]
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x34]
add ecx, 1
mov ecx, ecx
mov edx, dword [rax + rcx*8]
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x34]
mov dword [rax + rcx*8], edx
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x34]
add ecx, 1
mov ecx, ecx
mov edx, dword [rax + rcx*8 + 4]
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x34]
mov dword [rax + rcx*8 + 4], edx
mov edx, dword [rsp + 0x28]
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x34]
add ecx, 1
mov ecx, ecx
mov dword [rax + rcx*8], edx
mov edx, dword [rsp + 0x2c]
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x34]
add ecx, 1
mov ecx, ecx
mov dword [rax + rcx*8 + 4], edx
jmp 0x140004489
mov eax, dword [rsp + 0x34]
add eax, 1
mov dword [rsp + 0x34], eax
jmp 0x1400043be
jmp 0x14000449e
mov eax, dword [rsp + 0x4c]
add eax, 1
mov dword [rsp + 0x4c], eax
jmp 0x1400043a1
mov dword [rsp + 0xc4], 1
mov eax, dword [rsp + 0xc4]
add rsp, 0xc8
ret