Function at 0x18006fe10
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x180140080]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov r12, r9
mov r14, r8
mov qword [rbp + 0x60], r8
mov r15, rdx
mov r13, rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rdx
mov rax, qword [rbp + 0x3f0]
mov qword [rsp + 0x40], rax
xor esi, esi
mov qword [rbp + 0x10], rsi
xorps xmm0, xmm0
movups xmmword [rbp + 0x18], xmm0
mov qword [rbp + 0x28], rsi
mov qword [rbp + 0x30], 7
mov word [rbp + 0x18], si
movups xmmword [rbp + 0x38], xmm0
mov qword [rbp + 0x48], rsi
mov qword [rbp + 0x50], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x38], sil
mov dword [rbp + 0x58], esi
mov rbx, qword [r8]
test rbx, rbx
jne 0x18006feb0
mov dword [rdx], 0xc00000ef
mov byte [rdx + 0x58], bl
jmp 0x18007019c
movups xmmword [rbp + 0x90], xmm0
mov rax, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbp + 0x90], rax
mov rdi, rsi
mov qword [rbp + 0x98], rsi
movups xmmword [rbp + 0x130], xmm0
movups xmmword [rbp + 0x140], xmm0
movups xmmword [rbp + 0x150], xmm0
movups xmmword [rbp + 0x160], xmm0
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x170]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [r13 + 8]
mov qword [rbp + 0xe8], rsi
mov rax, qword [rax + 0x70]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
lea rdx, [rbp + 0xe8]
mov qword [rsp + 0x20], rdx
mov r9d, 0x40
lea r8, [rbp + 0x130]
mov rdx, rbx
call qword [rax + Ordinal_26]
mov eax, 0x5a4d
cmp word [rbp + 0x130], ax
je 0x18006ff53
mov dword [r15], 0xc000012f
mov byte [r15 + 0x58], 0
jmp 0x18007019c
mov rax, qword [r13 + 8]
movsxd rdx, dword [rbp + 0x16c]
add rdx, qword [r14]
mov qword [rbp + 0xf0], rsi
je 0x18006ff91
mov rax, qword [rax + 0x70]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
lea r8, [rbp + 0xf0]
mov qword [rsp + 0x20], r8
mov r9d, 0x108
lea r8, [rbp + 0x170]
call qword [rax + Ordinal_26]
cmp dword [rbp + 0x170], 0x4550
je 0x18006ffae
mov dword [r15], 0xc000007b
mov byte [r15 + 0x58], 0
jmp 0x18007019c
mov ebx, dword [rbp + 0x1f8]
mov edx, 0x10b
mov rax, qword [rbp + 0x188]
cmp ax, dx
cmove ebx, dword [rbp + 0x1e8]
mov r14d, ebx
test ebx, ebx
je 0x180070181
mov ecx, dword [rbp + 0x1fc]
cmp ax, dx
cmove ecx, dword [rbp + 0x1ec]
mov dword [rsp + 0x30], ecx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
mov r13, rax
mov qword [rbp + 0x98], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 8]
mov rax, qword [rbp + 0x60]
mov rdx, qword [rax]
mov qword [rbp + 0xf8], rsi
add rdx, r14
jne 0x18007001f
mov eax, 0xc0000141
jmp 0x180070045
mov rax, qword [rcx + 0x70]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
lea r8, [rbp + 0xf8]
mov qword [rsp + 0x20], r8
mov r9d, dword [rsp + 0x30]
mov r8, rdi
call qword [rax + Ordinal_26]
test eax, eax
jns 0x180070052
mov dword [r15], eax
mov byte [r15 + 0x58], 0
jmp 0x18007018d
mov r10, rdi
cmp dword [rsp + 0x30], 0x28
ja 0x1800700f3
mov ecx, dword [rdi + 0x14]
cmp ecx, dword [rdi + 0x18]
cmovbe ecx, dword [rdi + 0x18]
imul eax, ecx, 0xff
add eax, dword [rdi + 0x24]
sub eax, ebx
mov dword [rsp + 0x30], eax
mov ebx, eax
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
mov qword [rbp + 0x98], rax
test r13, r13
je 0x18007009c
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 8]
mov rax, qword [rbp + 0x60]
mov rdx, qword [rax]
mov qword [rbp + 0x100], rsi
add rdx, r14
jne 0x1800700bf
mov eax, 0xc0000141
jmp 0x1800700e6
mov rax, qword [rcx + 0x70]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
lea r8, [rbp + 0x100]
mov qword [rsp + 0x20], r8
mov r9, rbx
mov r8, rdi
call qword [rax + Ordinal_26]
mov r10, rdi
test eax, eax
jns 0x1800700f3
mov dword [r15], eax
mov byte [r15 + 0x58], 0
jmp 0x18007018d
mov ebx, dword [r10 + 0x24]
sub rbx, r14
add rbx, r10
mov r13d, dword [r10 + 0x20]
sub r13, r14
add r13, r10
mov eax, dword [r10 + 0x1c]
sub rax, r14
add rax, r10
mov qword [rbp + 0xc0], rax
mov r8d, esi
cmp dword [r10 + 0x14], esi
jbe 0x180070181
cmp r12, 0xffff
ja 0x18007013e
movzx r11d, r8w
movzx ecx, r8w
add ecx, dword [r10 + 0x10]
movzx eax, r12w
cmp eax, ecx
jmp 0x180070176
cmp r8d, dword [r10 + 0x18]
jae 0x1800708c8
mov eax, r8d
mov ecx, dword [r13 + rax*4]
sub rcx, r14
add rcx, r10
movzx r11d, word [rbx + rax*2]
mov r9, r12
sub r9, rcx
movzx edx, byte [rcx]
movzx eax, byte [rcx + r9]
sub edx, eax
jne 0x180070174
inc rcx
test eax, eax
jne 0x180070161
test edx, edx
je 0x1800701db
inc r8d
cmp r8d, dword [r10 + 0x14]
jb 0x180070121
mov dword [r15], 0xc0000225
mov byte [r15 + 0x58], 0
test rdi, rdi
je 0x18007019c
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea rcx, [rbp + 0x38]
call fcn.180005910
lea rcx, [rbp + 0x18]
call fcn.1800058a0
mov rax, r15
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.180100f50
mov rbx, qword [rsp + 0x4e8]
add rsp, 0x490
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rbp + 0x60]
mov rdx, qword [rax]
movzx eax, r11w
mov rcx, qword [rbp + 0xc0]
mov ebx, dword [rcx + rax*4]
add rbx, rdx
mov qword [rbp + 0x10], rbx
lea rax, [rdx + r14]
cmp rbx, rax
jb 0x180070868
mov eax, dword [rsp + 0x30]
add rax, rdx
add rax, r14
cmp rbx, rax
ja 0x180070868
xor edx, edx
mov r8d, 0xff
lea rcx, [rbp + 0x280]
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx + 8]
mov qword [rbp + 0xc0], rsi
test rbx, rbx
je 0x18007026a
mov rax, qword [rax + 0x70]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
lea rdx, [rbp + 0xc0]
mov qword [rsp + 0x20], rdx
mov r9d, 0xff
lea r8, [rbp + 0x280]
mov rdx, rbx
call qword [rax + Ordinal_26]
xorps xmm0, xmm0
movups xmmword [rbp + 0x70], xmm0
mov qword [rbp + 0x80], rsi
mov qword [rbp + 0x88], rsi
lea rax, [rbp + 0x280]
mov r14, 0xffffffffffffffff
mov r8, r14
inc r8
cmp byte [rax + r8], 0
jne 0x180070290
lea rdx, [rbp + 0x280]
lea rcx, [rbp + 0x70]
call fcn.180006a60
nop
lea rbx, [rbp + 0x70]
cmp qword [rbp + 0x88], 0xf
cmova rbx, qword [rbp + 0x70]
mov r13, qword [rbp + 0x80]
cmp r13, 1
jb 0x180070313
lea r12, [rbx + r13]
mov r8, r13
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x180070313
cmp byte [rax], 0x2e
jne 0x1800702eb
mov ecx, esi
jmp 0x1800702f0
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x1800703ed
inc rax
mov r8, r12
sub r8, rax
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov rcx, rax
call sub.VCRUNTIME140.dll_memchr
test rax, rax
jne 0x1800702e2
mov rax, r14
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
cmp r13, rax
cmovb rax, r13
lea rdx, [rbp + 0x70]
cmp qword [rbp + 0x88], 0xf
cmova rdx, qword [rbp + 0x70]
mov r8, rax
lea rcx, [rsp + 0x50]
call fcn.180006a60
nop
mov r8d, 4
lea rdx, str..dll
lea rcx, [rsp + 0x50]
call fcn.180005a10
xorps xmm0, xmm0
movups xmmword [rbp + 0x108], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x118], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x108], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x118], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea rcx, [rsp + 0x50]
call fcn.180005910
lea r13, [rbp + 0x70]
mov rdx, qword [rbp + 0x70]
mov r9, qword [rbp + 0x88]
cmp r9, 0xf
cmova r13, rdx
mov rbx, qword [rbp + 0x80]
cmp rbx, 1
jb 0x180070428
lea r12, [rbx + r13]
mov r8, rbx
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov rcx, r13
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x18007041d
cmp byte [rax], 0x2e
jne 0x1800703f5
mov ecx, esi
jmp 0x1800703fa
sub rax, rbx
jmp 0x180070316
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x1800704d8
inc rax
mov r8, r12
sub r8, rax
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov rcx, rax
call sub.VCRUNTIME140.dll_memchr
test rax, rax
jne 0x1800703e4
mov rdx, qword [rbp + 0x70]
mov r9, qword [rbp + 0x88]
mov rax, r14
lea rcx, [rax + 1]
xorps xmm0, xmm0
movups xmmword [rbp + 0xa0], xmm0
mov qword [rbp + 0xb0], rsi
mov qword [rbp + 0xb8], rsi
cmp rbx, rcx
jb 0x1800708d9
sub rbx, rcx
mov r8, r14
cmp rbx, r14
cmovb r8, rbx
lea rax, [rbp + 0x70]
cmp r9, 0xf
cmova rax, rdx
lea rdx, [rax + rcx]
lea rcx, [rbp + 0xa0]
call fcn.180006a60
nop
lea rdx, [rbp + 0x108]
lea rcx, [rbp + 0xc8]
call fcn.18006f1c0
nop
mov byte [rbp + 0x5a], 1
mov r12, qword [rbp + 0xd8]
lea r9, [rbp + 0xc8]
cmp qword [rbp + 0xe0], 7
cmova r9, qword [rbp + 0xc8]
mov eax, 7
cmp r12, rax
ja 0x1800704eb
lea rbx, [rbp + 0x18]
mov qword [rbp + 0x28], r12
lea r8, [r12 + r12]
mov rdx, r9
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + r12*2], si
jmp 0x1800704f7
sub rax, r13
mov rdx, qword [rbp + 0x70]
mov r9, qword [rbp + 0x88]
jmp 0x18007042b
mov rdx, r12
lea rcx, [rbp + 0x18]
call fcn.180006260
lea rbx, [rbp + 0xa0]
cmp qword [rbp + 0xb8], 0xf
cmova rbx, qword [rbp + 0xa0]
mov r12, qword [rbp + 0xb0]
cmp r12, 1
jb 0x180070561
lea r13, [rbx + r12]
mov r8, r12
mov edx, reloc.WLDAP32.dll_Ordinal_35
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x180070561
cmp byte [rax], 0x23
jne 0x18007053d
mov ecx, esi
jmp 0x180070542
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x1800705ab
inc rax
mov r8, r13
sub r8, rax
mov edx, reloc.WLDAP32.dll_Ordinal_35
mov rcx, rax
call sub.VCRUNTIME140.dll_memchr
test rax, rax
jne 0x180070534
mov byte [rbp + 0x5b], 0
lea r9, [rbp + 0xa0]
cmp qword [rbp + 0xb8], 0xf
cmova r9, qword [rbp + 0xa0]
mov rax, qword [rbp + 0x50]
cmp r12, rax
ja 0x1800705dd
lea rbx, [rbp + 0x38]
cmp rax, 0xf
cmova rbx, qword [rbp + 0x38]
mov qword [rbp + 0x48], r12
mov r8, r12
mov rdx, r9
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [r12 + rbx], 0
jmp 0x1800705ec
sub rax, rbx
sete byte [rbp + 0x5b]
test rax, rax
jne 0x180070565
lea rcx, [rbp + 0xa0]
cmp qword [rbp + 0xb8], 0xf
cmova rcx, qword [rbp + 0xa0]
inc rcx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov word [rbp + 0x58], ax
jmp 0x1800705ec
xor r8d, r8d
mov rdx, r12
lea rcx, [rbp + 0x38]
call fcn.18005c2e0
mov eax, 0x10b
cmp word [rbp + 0x188], ax
setne sil
xorps xmm0, xmm0
movups xmmword [rbp + 0x60], xmm0
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
xor r9d, r9d
lea r8, [rbp + 0xc8]
lea rdx, [rbp + 0x60]
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.18006fab0
nop
cmp qword [rbp + 0x60], 0
jne 0x18007070c
lea rax, [rbp - 0x40]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x40], rax
lea rdx, [rbp + 0x18]
lea rcx, [rbp - 0x38]
call fcn.180005480
nop
lea rdx, [rbp + 0x38]
lea rcx, [rbp - 0x18]
call fcn.180005610
movzx eax, word [rbp + 0x58]
mov word [rbp + 8], ax
movzx eax, byte [rbp + 0x5a]
mov byte [rbp + 0xa], al
movzx eax, byte [rbp + 0x5b]
mov byte [rbp + 0xb], al
mov r8d, 0x107
lea rdx, [rbp - 0x40]
mov rcx, r15
call fcn.1800722b0
nop
mov rbx, qword [rbp + 0x68]
test rbx, rbx
je 0x1800706c7
mov eax, r14d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1800706c0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], r14d
cmp r14d, 1
jne 0x1800706c0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rdi, qword [rbp + 0x98]
lea rcx, [rbp + 0xc8]
call fcn.1800058a0
nop
lea rcx, [rbp + 0xa0]
call fcn.180005910
nop
lea rcx, [rbp + 0x108]
call fcn.180005910
nop
lea rcx, [rbp + 0x70]
call fcn.180005910
nop
test rdi, rdi
je 0x180070707
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
jmp 0x18007019c
lea rax, [rbp + 0xc8]
lea r8, [rbp + 0x60]
mov rdx, r15
mov rcx, rbx
cmp byte [rbp + 0x5b], 0
je 0x1800707b7
cmp qword [rbp + 0xe0], 7
cmova rax, qword [rbp + 0xc8]
movzx r9d, word [rbp + 0x58]
mov qword [rsp + 0x20], rax
call fcn.18006fde0
nop
mov rbx, qword [rbp + 0x68]
test rbx, rbx
je 0x180070781
mov eax, r14d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x18007077a
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], r14d
cmp r14d, 1
jne 0x18007077a
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rdi, qword [rbp + 0x98]
lea rcx, [rbp + 0xc8]
call fcn.1800058a0
nop
lea rcx, [rbp + 0xa0]
call fcn.180005910
nop
lea rcx, [rbp + 0x108]
call fcn.180005910
nop
lea rcx, [rbp + 0x70]
call fcn.180005910
nop
jmp 0x180070854
cmp qword [rbp + 0xe0], 7
cmova rax, qword [rbp + 0xc8]
lea r9, [rbp + 0xa0]
cmp qword [rbp + 0xb8], 0xf
cmova r9, qword [rbp + 0xa0]
mov qword [rsp + 0x20], rax
call fcn.18006fde0
nop
mov rbx, qword [rbp + 0x68]
test rbx, rbx
je 0x180070823
mov eax, r14d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x18007081c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], r14d
cmp r14d, 1
jne 0x18007081c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rdi, qword [rbp + 0x98]
lea rcx, [rbp + 0xc8]
call fcn.1800058a0
nop
lea rcx, [rbp + 0xa0]
call fcn.180005910
nop
lea rcx, [rbp + 0x108]
call fcn.180005910
nop
lea rcx, [rbp + 0x70]
call fcn.180005910
nop
test rdi, rdi
je 0x180070863
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
jmp 0x18007019c
mov qword [rsp + 0x70], rbx
movups xmm1, xmmword [rbp + 0x18]
movups xmmword [rsp + 0x78], xmm1
movups xmm0, xmmword [rbp + 0x28]
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp + 0x28], rsi
mov eax, 7
mov qword [rbp + 0x30], rax
mov word [rbp + 0x18], si
movups xmm1, xmmword [rbp + 0x38]
movups xmmword [rbp - 0x68], xmm1
movups xmm0, xmmword [rbp + 0x48]
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp + 0x48], rsi
mov qword [rbp + 0x50], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x38], 0
mov dword [rbp - 0x48], esi
xor r8d, r8d
lea rdx, [rsp + 0x70]
mov rcx, r15
call fcn.1800722b0
nop
jmp 0x18007018d
mov dword [r15], 0xc0000225
mov byte [r15 + 0x58], 0
jmp 0x18007018d
call fcn.180005cc0
int3