Function at 0x140049db0
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 [0x1401159a0], 0
je 0x140049dcd
mov eax, 1
jmp 0x14004a3b2
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
lea rcx, [0x1400669d0]
call fcn.14004b270
mov ebx, eax
lea rcx, [0x1400669c8]
call fcn.14004b270
sub ebx, eax
lea rcx, [0x1400669c0]
call fcn.14004b270
add ebx, eax
lea rcx, [0x1400669b8]
call fcn.14004b270
sub ebx, eax
lea rcx, [0x1400669b0]
call fcn.14004b270
sub ebx, eax
lea rcx, [0x1400669a8]
call fcn.14004b270
sub ebx, eax
lea rcx, str.1021
call fcn.14004b270
add ebx, eax
lea rcx, str._525
call fcn.14004b270
mov ecx, ebx
add ecx, eax
mov eax, 1
sub eax, ecx
movsxd rcx, eax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + rcx*8 + 8]
mov qword [rsp + 0x20], rax
jmp 0x140049e95
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 0x140049f71
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 0x140049f0c
jmp 0x140049e88
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 0x140049f53
jmp 0x140049e88
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 4]
or eax, 0x20202020
cmp eax, 0x6c642e6c
jne 0x140049f6c
jmp 0x140049f71
jmp 0x140049e88
cmp qword [rsp + 0x68], 0
jne 0x140049f80
xor eax, eax
jmp 0x14004a3b2
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, [0x1401159a4]
mov qword [rsp + 0x58], rax
lea rcx, [0x1400669d0]
call fcn.14004b270
mov ebx, eax
lea rcx, [0x1400669c8]
call fcn.14004b270
sub ebx, eax
lea rcx, [0x1400669c0]
call fcn.14004b270
add ebx, eax
lea rcx, [0x1400669b8]
call fcn.14004b270
sub ebx, eax
lea rcx, [0x1400669b0]
call fcn.14004b270
sub ebx, eax
lea rcx, [0x1400669a8]
call fcn.14004b270
sub ebx, eax
lea rcx, str.1021
call fcn.14004b270
add ebx, eax
lea rcx, str._525
call fcn.14004b270
add eax, dword [rsp + 0x40]
lea eax, [rax + rbx - 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 0x14004a158
mov rcx, qword [rsp + 0xa0]
call fcn.140049c40
mov r11d, eax
mov ecx, dword [rsp + 0x30]
mov rax, qword [rsp + 0x58]
mov dword [rax + rcx*8], r11d
mov edi, dword [rsp + 0x40]
sub edi, 1
lea rcx, [0x1400669d0]
call fcn.14004b270
mov ebx, eax
lea rcx, [0x1400669c8]
call fcn.14004b270
sub ebx, eax
lea rcx, [0x1400669c0]
call fcn.14004b270
add ebx, eax
lea rcx, [0x1400669b8]
call fcn.14004b270
sub ebx, eax
lea rcx, [0x1400669b0]
call fcn.14004b270
sub ebx, eax
lea rcx, [0x1400669a8]
call fcn.14004b270
sub ebx, eax
lea rcx, str.1021
call fcn.14004b270
add ebx, eax
lea rcx, str._525
call fcn.14004b270
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 0x14004a158
jmp 0x14004a16e
mov eax, dword [rsp + 0x40]
sub eax, 1
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x140049fdf
mov eax, dword [rsp + 0x30]
mov dword [0x1401159a0], eax
mov dword [rsp + 0x30], 0
jmp 0x14004a18d
mov eax, dword [rsp + 0x30]
add eax, 1
mov dword [rsp + 0x30], eax
mov eax, dword [0x1401159a0]
sub eax, 1
cmp dword [rsp + 0x30], eax
jae 0x14004a3ad
mov dword [rsp + 0xa8], 0
jmp 0x14004a1be
mov eax, dword [rsp + 0xa8]
add eax, 1
mov dword [rsp + 0xa8], eax
mov ecx, dword [rsp + 0x30]
mov eax, dword [0x1401159a0]
sub eax, ecx
sub eax, 1
cmp dword [rsp + 0xa8], eax
jae 0x14004a3a8
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 0x14004a3a3
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 edi, dword [rsp + 0xa8]
add edi, 1
lea rcx, [0x1400669d0]
call fcn.14004b270
mov ebx, eax
lea rcx, [0x1400669c8]
call fcn.14004b270
sub ebx, eax
lea rcx, [0x1400669c0]
call fcn.14004b270
add ebx, eax
lea rcx, [0x1400669b8]
call fcn.14004b270
sub ebx, eax
lea rcx, [0x1400669b0]
call fcn.14004b270
sub ebx, eax
lea rcx, [0x1400669a8]
call fcn.14004b270
sub ebx, eax
lea rcx, str.1021
call fcn.14004b270
add ebx, eax
lea rcx, str._525
call fcn.14004b270
mov ecx, ebx
add 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]
mov dword [rcx + rdx*8], eax
mov edi, dword [rsp + 0xa8]
add edi, 1
lea rcx, [0x1400669d0]
call fcn.14004b270
mov ebx, eax
lea rcx, [0x1400669c8]
call fcn.14004b270
sub ebx, eax
lea rcx, [0x1400669c0]
call fcn.14004b270
add ebx, eax
lea rcx, [0x1400669b8]
call fcn.14004b270
sub ebx, eax
lea rcx, [0x1400669b0]
call fcn.14004b270
sub ebx, eax
lea rcx, [0x1400669a8]
call fcn.14004b270
sub ebx, eax
lea rcx, str.1021
call fcn.14004b270
add ebx, eax
lea rcx, str._525
call fcn.14004b270
mov ecx, ebx
add 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
mov eax, dword [rsp + 0xa8]
add eax, 1
mov edx, eax
mov rcx, qword [rsp + 0x58]
mov eax, dword [rsp + 0xb4]
mov dword [rcx + rdx*8 + 4], eax
jmp 0x14004a1ad
jmp 0x14004a182
mov eax, 1
add rsp, 0xc8
pop rdi
pop rbx
ret