Function at 0x140099e10
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 [0x14016b0c0]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov r12, r9
mov r14, r8
mov qword [rbp + 0x70], 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 eax, 7
mov qword [rbp + 0x30], rax
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 0x140099eb1
mov dword [rdx], 0xc00000ef
mov byte [rdx + 0x58], bl
jmp 0x14009a19b
movups xmmword [rbp + 0x60], xmm0
mov rax, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbp + 0x60], rax
mov rdi, rsi
mov qword [rbp + 0x68], 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 + 0xf0], rsi
mov rax, qword [rax + 0x70]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
lea rdx, [rbp + 0xf0]
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 0x140099f4b
mov dword [r15], 0xc000012f
mov byte [r15 + 0x58], 0
jmp 0x14009a19b
mov rax, qword [r13 + 8]
movsxd rdx, dword [rbp + 0x16c]
add rdx, qword [r14]
mov qword [rbp + 0xf8], rsi
je 0x140099f89
mov rax, qword [rax + 0x70]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
lea r8, [rbp + 0xf8]
mov qword [rsp + 0x20], r8
mov r9d, 0x108
lea r8, [rbp + 0x170]
call qword [rax + Ordinal_26]
cmp dword [rbp + 0x170], 0x4550
je 0x140099fa6
mov dword [r15], 0xc000007b
mov byte [r15 + 0x58], 0
jmp 0x14009a19b
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 0x14009a180
mov ecx, dword [rbp + 0x1fc]
cmp ax, dx
cmove ecx, dword [rbp + 0x1ec]
mov dword [rsp + 0x34], ecx
mov eax, ecx
mov qword [rbp + 0xc0], rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
mov r13, rax
mov qword [rbp + 0x68], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 8]
mov rax, qword [rbp + 0x70]
mov rdx, qword [rax]
mov qword [rbp + 0x100], rsi
add rdx, r14
jne 0x14009a01d
mov eax, 0xc0000141
jmp 0x14009a045
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, qword [rbp + 0xc0]
mov r8, rdi
call qword [rax + Ordinal_26]
test eax, eax
jns 0x14009a052
mov dword [r15], eax
mov byte [r15 + 0x58], 0
jmp 0x14009a18c
mov r10, rdi
cmp dword [rsp + 0x34], 0x28
ja 0x14009a0f0
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 + 0x34], 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 + 0x68], rax
test r13, r13
je 0x14009a099
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 + 0x70]
mov rdx, qword [rax]
mov qword [rbp + 0xc0], rsi
add rdx, r14
jne 0x14009a0bc
mov eax, 0xc0000141
jmp 0x14009a0e3
mov rax, qword [rcx + 0x70]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
lea r8, [rbp + 0xc0]
mov qword [rsp + 0x20], r8
mov r9, rbx
mov r8, rdi
call qword [rax + Ordinal_26]
mov r10, rdi
test eax, eax
jns 0x14009a0f0
mov dword [r15], eax
mov byte [r15 + 0x58], 0
jmp 0x14009a18c
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 + 0xc8], rax
mov r8d, esi
cmp dword [r10 + 0x14], esi
jbe 0x14009a180
nop
cmp r12, 0xffff
ja 0x14009a13d
movzx r11d, r8w
movzx ecx, r8w
add ecx, dword [r10 + 0x10]
movzx eax, r12w
cmp eax, ecx
jmp 0x14009a175
cmp r8d, dword [r10 + 0x18]
jae 0x14009a8f1
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 0x14009a173
inc rcx
test eax, eax
jne 0x14009a160
test edx, edx
je 0x14009a1da
inc r8d
cmp r8d, dword [r10 + 0x14]
jb 0x14009a120
mov dword [r15], 0xc0000225
mov byte [r15 + 0x58], 0
test rdi, rdi
je 0x14009a19b
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea rcx, [rbp + 0x38]
call fcn.14007e670
lea rcx, [rbp + 0x18]
call fcn.14007e600
mov rax, r15
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.140126e40
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 + 0x70]
mov rdx, qword [rax]
movzx eax, r11w
mov rcx, qword [rbp + 0xc8]
mov ebx, dword [rcx + rax*4]
add rbx, rdx
mov qword [rbp + 0x10], rbx
lea rax, [r14 + rdx]
cmp rbx, rax
jb 0x14009a891
mov eax, dword [rsp + 0x34]
add rax, r14
add rax, rdx
cmp rbx, rax
ja 0x14009a891
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 + 0xc8], rsi
test rbx, rbx
je 0x14009a269
mov rax, qword [rax + 0x70]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
lea rdx, [rbp + 0xc8]
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 + 0x80], xmm0
mov qword [rbp + 0x90], rsi
mov qword [rbp + 0x98], rsi
lea rax, [rbp + 0x280]
mov r14, 0xffffffffffffffff
mov r8, r14
inc r8
cmp byte [rax + r8], 0
jne 0x14009a292
lea rdx, [rbp + 0x280]
lea rcx, [rbp + 0x80]
call fcn.14004b200
nop
lea rbx, [rbp + 0x80]
cmp qword [rbp + 0x98], 0xf
cmova rbx, qword [rbp + 0x80]
mov r13, qword [rbp + 0x90]
cmp r13, 1
jb 0x14009a321
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 0x14009a321
nop dword [rax]
cmp byte [rax], 0x2e
jne 0x14009a2f9
mov ecx, esi
jmp 0x14009a2fe
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x14009a409
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 0x14009a2f0
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 + 0x80]
cmp qword [rbp + 0x98], 0xf
cmova rdx, qword [rbp + 0x80]
mov r8, rax
lea rcx, [rsp + 0x50]
call fcn.14004b200
nop
mov r8d, 4
lea rdx, str..dll
lea rcx, [rsp + 0x50]
call fcn.14007e8e0
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.14007e670
lea r13, [rbp + 0x80]
mov rdx, qword [rbp + 0x80]
mov r9, qword [rbp + 0x98]
cmp r9, 0xf
cmova r13, rdx
mov rbx, qword [rbp + 0x90]
cmp rbx, 1
jb 0x14009a447
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 0x14009a439
nop
cmp byte [rax], 0x2e
jne 0x14009a411
mov ecx, esi
jmp 0x14009a416
sub rax, rbx
jmp 0x14009a324
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x14009a4fa
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 0x14009a400
mov rdx, qword [rbp + 0x80]
mov r9, qword [rbp + 0x98]
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 0x14009a902
sub rbx, rcx
mov r8, r14
cmp rbx, r14
cmovb r8, rbx
lea rax, [rbp + 0x80]
cmp r9, 0xf
cmova rax, rdx
lea rdx, [rax + rcx]
lea rcx, [rbp + 0xa0]
call fcn.14004b200
nop
lea rdx, [rbp + 0x108]
lea rcx, [rbp + 0xd0]
call fcn.140098fd0
nop
mov byte [rbp + 0x5a], 1
mov r12, qword [rbp + 0xe0]
lea r9, [rbp + 0xd0]
cmp qword [rbp + 0xe8], 7
cmova r9, qword [rbp + 0xd0]
mov eax, 7
cmp r12, rax
ja 0x14009a510
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 0x14009a51c
sub rax, r13
mov rdx, qword [rbp + 0x80]
mov r9, qword [rbp + 0x98]
jmp 0x14009a44a
mov rdx, r12
lea rcx, [rbp + 0x18]
call fcn.1400816c0
lea rbx, [rbp + 0xa0]
cmp qword [rbp + 0xb8], 0xf
cmova rbx, qword [rbp + 0xa0]
mov r12, qword [rbp + 0xb0]
cmp r12, 1
jb 0x14009a58d
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 0x14009a58d
nop dword [rax]
cmp byte [rax], 0x23
jne 0x14009a569
mov ecx, esi
jmp 0x14009a56e
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x14009a5d7
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 0x14009a560
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 0x14009a609
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 0x14009a61b
sub rax, rbx
sete byte [rbp + 0x5b]
test rax, rax
jne 0x14009a591
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 0x14009a61b
movzx r8d, byte [rsp + 0x30]
mov rdx, r12
lea rcx, [rbp + 0x38]
call fcn.140082770
mov eax, 0x10b
cmp word [rbp + 0x188], ax
setne sil
xorps xmm0, xmm0
movups xmmword [rbp + 0x70], xmm0
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
xor r9d, r9d
lea r8, [rbp + 0xd0]
lea rdx, [rbp + 0x70]
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.1400998c0
nop
cmp qword [rbp + 0x70], 0
jne 0x14009a738
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.14007cf00
nop
lea rdx, [rbp + 0x38]
lea rcx, [rbp - 0x18]
call fcn.14004b5a0
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.14009c2e0
nop
mov rbx, qword [rbp + 0x78]
test rbx, rbx
je 0x14009a6f3
mov eax, r14d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14009a6ef
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], r14d
cmp r14d, 1
jne 0x14009a6ef
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rdi, qword [rbp + 0x68]
lea rcx, [rbp + 0xd0]
call fcn.14007e600
nop
lea rcx, [rbp + 0xa0]
call fcn.14007e670
nop
lea rcx, [rbp + 0x108]
call fcn.14007e670
nop
lea rcx, [rbp + 0x80]
call fcn.14007e670
nop
test rdi, rdi
je 0x14009a733
mov rcx, rdi
call qword [rbp + 0x60]
nop
jmp 0x14009a19b
lea rax, [rbp + 0xd0]
lea r8, [rbp + 0x70]
mov rdx, r15
mov rcx, rbx
cmp byte [rbp + 0x5b], 0
je 0x14009a7e3
cmp qword [rbp + 0xe8], 7
cmova rax, qword [rbp + 0xd0]
movzx r9d, word [rbp + 0x58]
mov qword [rsp + 0x20], rax
call fcn.140099de0
nop
mov rbx, qword [rbp + 0x78]
test rbx, rbx
je 0x14009a7aa
mov eax, r14d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14009a7a6
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], r14d
cmp r14d, 1
jne 0x14009a7a6
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rdi, qword [rbp + 0x68]
lea rcx, [rbp + 0xd0]
call fcn.14007e600
nop
lea rcx, [rbp + 0xa0]
call fcn.14007e670
nop
lea rcx, [rbp + 0x108]
call fcn.14007e670
nop
lea rcx, [rbp + 0x80]
call fcn.14007e670
nop
jmp 0x14009a880
cmp qword [rbp + 0xe8], 7
cmova rax, qword [rbp + 0xd0]
lea r9, [rbp + 0xa0]
cmp qword [rbp + 0xb8], 0xf
cmova r9, qword [rbp + 0xa0]
mov qword [rsp + 0x20], rax
call fcn.140099de0
nop
mov rbx, qword [rbp + 0x78]
test rbx, rbx
je 0x14009a84c
mov eax, r14d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14009a848
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], r14d
cmp r14d, 1
jne 0x14009a848
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rdi, qword [rbp + 0x68]
lea rcx, [rbp + 0xd0]
call fcn.14007e600
nop
lea rcx, [rbp + 0xa0]
call fcn.14007e670
nop
lea rcx, [rbp + 0x108]
call fcn.14007e670
nop
lea rcx, [rbp + 0x80]
call fcn.14007e670
nop
test rdi, rdi
je 0x14009a88c
mov rcx, rdi
call qword [rbp + 0x60]
nop
jmp 0x14009a19b
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.14009c2e0
nop
jmp 0x14009a18c
mov dword [r15], 0xc0000225
mov byte [r15 + 0x58], 0
jmp 0x14009a18c
call fcn.14007f790
int3