Function at 0x18003f120
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x300]
sub rsp, 0x400
mov qword [rbp - 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x450], rbx
mov rax, qword [0x18009c160]
xor rax, rsp
mov qword [rbp + 0x2f0], rax
mov rdi, rdx
mov qword [rsp + 0x78], rcx
call fcn.18003e720
test eax, eax
je 0x18003f892
xor eax, eax
mov qword [rbp + 0xd4], rax
mov qword [rbp + 0xdc], rax
mov qword [rbp + 0xe4], rax
mov qword [rbp + 0xec], rax
xor r14d, r14d
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x60], r14d
mov dword [rsp + 0x5c], r14d
mov dword [rsp + 0x54], r14d
mov qword [rbp + 0xd0], r14
mov dword [rbp + 0xd8], 0x100
mov qword [rbp + 0xdc], 0x100
mov dword [rsp + 0x30], 0x24
mov dword [rsp + 0x50], 0x1000
mov ecx, 0x1000
call fcn.18001a33c
mov r15, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x18003f892
xor edx, edx
mov r8d, 0x1000
mov rcx, rax
call fcn.18001ab30
lea r11, [rsp + 0x50]
mov qword [rsp + 0x28], r11
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x30]
lea r8, [rbp + 0xd0]
xor edx, edx
lea ecx, [rdx + 6]
call qword [0x1800afc00]
test eax, eax
jne 0x18003f88a
mov esi, dword [rsp + 0x50]
shr esi, 3
mov dword [rsp + 0x34], esi
mov r13d, r14d
mov dword [rsp + 0x3c], r13d
mov r12d, r14d
test esi, esi
jle 0x18003f472
lea r13, [rbp + 0x160]
mov rsi, r15
mov ebx, dword [rsp + 0x34]
nop dword [rax]
cmp dword [rsi], 0x200
jne 0x18003f443
inc dword [rsp + 0x3c]
xor eax, eax
mov qword [rbp + 0xd0], rax
mov qword [rbp + 0xd8], rax
mov qword [rbp + 0xe0], rax
mov qword [rbp + 0xe8], rax
mov dword [rbp + 0xf0], eax
mov rax, qword [rsi]
mov qword [rbp + 0xd0], rax
mov dword [rbp + 0xd8], 0x100
mov dword [rbp + 0xdc], 0x100
mov dword [rbp + 0xe0], 1
mov dword [rsp + 0x38], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
lea r8, [rbp + 0xd0]
xor edx, edx
lea ecx, [rdx + 6]
call qword [0x1800afc00]
test eax, eax
jne 0x18003f88a
cmp dword [rsp + 0x40], 0x202
jne 0x18003f443
mov dword [rbp + 0xd8], 0x200
mov dword [rbp + 0xe0], 1
mov dword [rsp + 0x60], 0xe1
mov ecx, 0xe1
call fcn.18001a33c
mov rbx, rax
test rax, rax
je 0x18003f88a
xor edx, edx
mov r8d, 0xe1
mov rcx, rax
call fcn.18001ab30
lea r11, [rsp + 0x60]
mov qword [rsp + 0x28], r11
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x30]
lea r8, [rbp + 0xd0]
xor edx, edx
lea ecx, [rdx + 6]
call qword [0x1800afc00]
test eax, eax
jne 0x18003f454
cmp dword [rbx + 4], 0x18
jne 0x18003f388
mov rcx, rbx
call fcn.18001a3f4
jmp 0x18003f43f
xor edx, edx
lea rcx, [rbp - 0x60]
call fcn.18003a3a0
nop
mov eax, dword [rbx]
mov dword [rbp + 0xa0], eax
lea rdx, [rbx + 0x5c]
test rdx, rdx
je 0x18003f3bd
mov eax, dword [rbx + 0x58]
test eax, eax
je 0x18003f3bd
mov byte [rax + rbx + 0x5c], 0
lea rcx, [rbp + 0xb0]
call fcn.180014520
cmp dword [rbx + 0x10], 6
jne 0x18003f429
movzx r8d, byte [rbx + 0x14]
mov edx, dword [rbp - 0x48]
lea rcx, [rbp - 0x50]
call fcn.180015f60
movzx r8d, byte [rbx + 0x15]
mov edx, dword [rbp - 0x48]
lea rcx, [rbp - 0x50]
call fcn.180015f60
movzx r8d, byte [rbx + 0x16]
mov edx, dword [rbp - 0x48]
lea rcx, [rbp - 0x50]
call fcn.180015f60
movzx r8d, byte [rbx + 0x17]
mov edx, dword [rbp - 0x48]
lea rcx, [rbp - 0x50]
call fcn.180015f60
movzx r8d, byte [rbx + 0x18]
mov edx, dword [rbp - 0x48]
lea rcx, [rbp - 0x50]
call fcn.180015f60
movzx r8d, byte [rbx + 0x19]
mov edx, dword [rbp - 0x48]
lea rcx, [rbp - 0x50]
call fcn.180015f60
add r13, 4
mov rcx, rbx
call fcn.18001a3f4
nop
lea rcx, [rbp - 0x60]
call fcn.18003a2e0
mov ebx, dword [rsp + 0x34]
inc r12d
add rsi, 8
cmp r12d, ebx
jge 0x18003f46b
jmp 0x18003f260
mov rcx, r15
call fcn.18001a3f4
mov rcx, rbx
call fcn.18001a3f4
xor eax, eax
jmp 0x18003f977
mov r13d, dword [rsp + 0x3c]
jmp 0x18003f474
mov ebx, esi
mov esi, r14d
mov dword [rsp + 0x58], r14d
test ebx, ebx
jle 0x18003f8c8
mov rbx, r15
mov qword [rsp + 0x70], rbx
mov eax, dword [rsp + 0x34]
cmp dword [rbx], 0x301
jne 0x18003f863
xor eax, eax
mov qword [rbp + 0xd0], rax
mov qword [rbp + 0xd8], rax
mov qword [rbp + 0xe0], rax
mov qword [rbp + 0xe8], rax
mov dword [rbp + 0xf0], eax
mov rax, qword [rbx]
mov qword [rbp + 0xd0], rax
mov dword [rbp + 0xd8], 0x100
mov dword [rbp + 0xdc], 0x100
mov dword [rbp + 0xe0], 1
mov dword [rsp + 0x38], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
lea r8, [rbp + 0xd0]
xor edx, edx
lea ecx, [rdx + 6]
call qword [0x1800afc00]
test eax, eax
jne 0x18003f8b2
cmp dword [rsp + 0x40], 0x303
jne 0x18003f85f
mov dword [rbp + 0xd8], 0x200
mov dword [rbp + 0xe0], 0x102
lea eax, [r13 + r13*2]
shl eax, 3
mov dword [rsp + 0x5c], eax
mov ebx, eax
mov ecx, eax
call fcn.18001a33c
mov rsi, rax
mov qword [rsp + 0x68], rax
test rax, rax
je 0x18003f8b2
mov r8d, ebx
xor edx, edx
mov rcx, rax
call fcn.18001ab30
lea r11, [rsp + 0x5c]
mov qword [rsp + 0x28], r11
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x30]
lea r8, [rbp + 0xd0]
xor edx, edx
lea ecx, [rdx + 6]
call qword [0x1800afc00]
test eax, eax
jne 0x18003f899
test r13d, r13d
jle 0x18003f647
lea r12, [rsi + 4]
mov ecx, dword [r12 - 4]
call qword [sym.imp.WS2_32.dll_ntohl]
mov r14d, eax
mov ecx, dword [r12 + 4]
call qword [sym.imp.WS2_32.dll_ntohl]
mov r15d, eax
xor ebx, ebx
mov rcx, rdi
call fcn.180031ea0
test eax, eax
jle 0x18003f632
mov esi, dword [r12]
mov edx, ebx
mov rcx, rdi
call fcn.180037940
mov rcx, rdi
cmp dword [rax + 0x100], esi
je 0x18003f603
inc ebx
call fcn.180031ea0
cmp ebx, eax
jl 0x18003f5e1
jmp 0x18003f632
mov edx, ebx
call fcn.180037940
mov r8d, r14d
mov edx, dword [rax + 0x48]
lea rcx, [rax + 0x40]
call fcn.180015aa0
mov edx, ebx
mov rcx, rdi
call fcn.180037940
mov r8d, r15d
mov edx, dword [rax + 0x60]
lea rcx, [rax + 0x58]
call fcn.180015aa0
add r12, 0x18
dec r13
jne 0x18003f5b3
mov rsi, qword [rsp + 0x68]
xor r14d, r14d
mov rcx, rsi
call fcn.18001a3f4
mov dword [rbp + 0x100], r14d
xor edx, edx
lea r8d, [rdx + 0x58]
lea rcx, [rbp + 0x104]
call fcn.18001ab30
mov dword [rsp + 0x64], 0x5c
xor eax, eax
mov qword [rbp + 0xd0], rax
mov qword [rbp + 0xd8], rax
mov qword [rbp + 0xe0], rax
mov qword [rbp + 0xe8], rax
mov dword [rbp + 0xf0], eax
mov qword [rbp + 0xd0], 0x301
mov dword [rbp + 0xd8], 0x200
mov dword [rbp + 0xdc], 0x100
mov dword [rbp + 0xe0], 1
lea rax, [rsp + 0x64]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x100]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
lea r8, [rbp + 0xd0]
xor edx, edx
lea ecx, [rdx + 6]
call qword [0x1800afc00]
test eax, eax
jne 0x18003f8b2
mov eax, dword [rbp + 0x158]
lea ecx, [rax + rax*2]
shl ecx, 4
mov dword [rsp + 0x54], ecx
mov ebx, ecx
call fcn.18001a33c
mov r15, rax
mov qword [rsp + 0x68], rax
test rax, rax
je 0x18003f8b2
mov r8d, ebx
xor edx, edx
mov rcx, rax
call fcn.18001ab30
xor r11d, r11d
mov qword [rbp + 0xd0], r11
mov qword [rbp + 0xd8], r11
mov qword [rbp + 0xe0], r11
mov qword [rbp + 0xe8], r11
mov dword [rbp + 0xf0], r11d
mov qword [rbp + 0xd0], 0x301
mov dword [rbp + 0xd8], 0x200
mov dword [rbp + 0xdc], 0x100
mov dword [rbp + 0xe0], 0x101
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x30]
lea r8, [rbp + 0xd0]
xor edx, edx
lea ecx, [rdx + 6]
call qword [0x1800afc00]
test eax, eax
jne 0x18003f880
mov r13d, r14d
mov r14d, dword [rbp + 0x158]
test r14d, r14d
jle 0x18003f84b
lea r12, [r15 + 4]
xor r15d, r15d
nop
cmp dword [r12 - 4], r15d
jne 0x18003f836
cmp dword [r12 + 0x24], r15d
jne 0x18003f836
mov esi, r15d
mov rcx, rdi
call fcn.180031ea0
test eax, eax
jle 0x18003f836
mov ebx, dword [r12]
mov edx, esi
mov rcx, rdi
call fcn.180037940
cmp dword [rax + 0x100], ebx
je 0x18003f803
inc esi
mov rcx, rdi
call fcn.180031ea0
cmp esi, eax
jl 0x18003f7e1
jmp 0x18003f836
mov ecx, dword [r12 + 0x14]
call qword [sym.imp.WS2_32.dll_ntohl]
mov ebx, eax
mov edx, esi
mov rcx, rdi
call fcn.180037940
mov r8d, ebx
mov edx, dword [rax + 0x90]
lea rcx, [rax + 0x88]
call fcn.180015aa0
mov r14d, dword [rbp + 0x158]
inc r13d
add r12, 0x30
cmp r13d, r14d
jl 0x18003f7c0
mov r15, qword [rsp + 0x68]
mov rcx, r15
call fcn.18001a3f4
xor r14d, r14d
mov rbx, qword [rsp + 0x70]
mov esi, dword [rsp + 0x58]
mov eax, dword [rsp + 0x34]
inc esi
mov dword [rsp + 0x58], esi
add rbx, 8
mov qword [rsp + 0x70], rbx
cmp esi, eax
jge 0x18003f8c3
mov r13d, dword [rsp + 0x3c]
jmp 0x18003f490
mov rcx, qword [rsp + 0x48]
call fcn.18001a3f4
mov rcx, r15
call fcn.18001a3f4
xor eax, eax
jmp 0x18003f977
mov rcx, qword [rsp + 0x48]
call fcn.18001a3f4
mov rcx, rsi
call fcn.18001a3f4
xor eax, eax
jmp 0x18003f977
mov rcx, qword [rsp + 0x48]
call fcn.18001a3f4
xor eax, eax
jmp 0x18003f977
mov r15, qword [rsp + 0x48]
lea rcx, [rbp - 0x80]
call fcn.180015da0
nop
mov rcx, qword [rsp + 0x78]
mov rax, qword [rcx]
lea rdx, [rbp - 0x80]
call qword [rax + 0x80]
mov ebx, r14d
mov rcx, rdi
call fcn.180031ea0
test eax, eax
jle 0x18003f952
mov edx, ebx
mov rcx, rdi
call fcn.180037940
lea rdx, [rbp - 0x80]
lea rcx, [rax + 0xa0]
call fcn.180015a40
mov esi, r14d
mov edx, ebx
mov rcx, rdi
call fcn.180037940
cmp dword [rax + 0x48], 0
jle 0x18003f944
mov edx, ebx
mov rcx, rdi
call fcn.180037940
cmp dword [rax + 0xd0], 0
jne 0x18003f944
inc esi
mov edx, ebx
mov rcx, rdi
call fcn.180037940
cmp esi, dword [rax + 0x48]
jl 0x18003f920
inc ebx
mov rcx, rdi
call fcn.180031ea0
cmp ebx, eax
jl 0x18003f8f3
mov rcx, r15
call fcn.18001a3f4
mov rcx, rdi
call fcn.180031ea0
test eax, eax
mov ebx, 0
setg bl
lea rcx, [rbp - 0x80]
call fcn.180015db0
mov eax, ebx
mov rcx, qword [rbp + 0x2f0]
xor rcx, rsp
call fcn.1800190b0
mov rbx, qword [rsp + 0x450]
add rsp, 0x400
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret