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

Disassembly:
push rbp
push rsi
push r13
sub rsp, 0x560
mov rax, qword [0x14012bc80]
xor rax, rsp
mov qword [rsp + 0x538], rax
mov r13, r8
mov qword [rsp + 0x48], r8
mov rbp, rdx
mov qword [rsp + 0x68], rdx
mov rsi, rcx
mov dword [rsp + 0x40], 0
cmp r9d, 3
je 0x1400ad1f6
cmp r9d, 1
jne 0x1400ad357
cmp dword [rcx + 0xc8], r9d
jne 0x1400ad36e
mov qword [rsp + 0x598], rbx
mov qword [rsp + 0x558], rdi
mov edi, dword [rdx + 0x88]
mov qword [rsp + 0x550], r12
mov r12, qword [rcx + 0xb0]
mov qword [rsp + 0x548], r14
mov r14d, dword [rdx + 0x8c]
mov qword [rsp + 0x540], r15
mov r15d, dword [rdx + 0x90]
mov rdx, qword [str.permanent]
mov rcx, r12
xor r8d, r8d
xor ebx, ebx
mov qword [rsp + 0x70], r12
call fcn.14002a750
test eax, eax
mov rdx, r12
lea r8d, [rbx + 0xc]
cmove rdx, qword [str.1_jan_0]
lea rcx, [rsp + 0x31b]
call fcn.140065fe0
lea rdx, [rsp + 0xf0]
mov rcx, rbp
call fcn.14006ad70
mov ecx, dword [rbp + 0x88]
mov r12d, eax
test ecx, ecx
je 0x1400ad2a1
cmp edi, 0xfffffff1
je 0x1400ad2a3
cmp edi, 0xfffffffd
je 0x1400ad2a3
cmp edi, 0xffffff9f
je 0x1400ad2a3
cmp edi, 0xffffffa3
je 0x1400ad2a3
mov ecx, edi
xor eax, eax
mov dword [rbp + 0x88], ecx
mov r9d, r15d
mov qword [rsp + 0x30], rax
mov r8d, r14d
mov edx, edi
mov rcx, rbp
mov dword [rsp + 0x28], 0xff
mov qword [rsp + 0x20], rax
call fcn.14006b500
test r12d, r12d
js 0x1400ad802
cmp dword [rsi], ebx
jne 0x1400ad802
mov edi, dword [rbp + 0x1a8]
test edi, edi
jns 0x1400ad2f1
cmp dword [rsi + 4], ebx
je 0x1400ad802
mov r14, qword [rsi + 0xc0]
mov r15, qword [rsi + 0xd0]
mov ecx, 0x438
call fcn.140010258
mov r13, rax
test dil, 4
jne 0x1400ad388
test dil, 0x20
jne 0x1400ad388
test dil, 0x10
jne 0x1400ad388
cmp qword [rbp + 0x1c8], rbx
jne 0x1400ad388
mov ecx, 0x438
call fcn.140010258
mov rbx, rax
test rax, rax
jne 0x1400ad375
test r13, r13
je 0x1400ad346
mov rcx, r13
call fcn.140064760
mov rax, qword [rsp + 0x48]
mov qword [rax], 0
jmp 0x1400ad806
cmp r9d, 2
jne 0x1400ad1f6
cmp dword [rcx + 0xc8], r9d
je 0x1400ad1f6
xor eax, eax
jmp 0x1400ad830
xor r9d, r9d
xor edx, edx
mov r8d, 0x438
mov rcx, rax
call fcn.14002a5a0
xor edx, edx
mov rcx, r14
call fcn.14002a9d0
lea rcx, [rax + 0x32]
call fcn.140010258
mov rdi, rax
test r13, r13
je 0x1400ad7da
test rax, rax
je 0x1400ad7d5
lea rdx, str.SERVER_this_host__s
mov r8, r14
mov rcx, rax
call fcn.14000ca3c
xor r14d, r14d
xor r9d, r9d
mov r8, r13
mov rdx, rdi
mov rcx, rbp
mov qword [rsp + 0x20], r14
call fcn.1400733f0
mov eax, dword [rbp + 0x1a8]
test al, 4
jne 0x1400ad40c
test al, 0x20
jne 0x1400ad40c
test al, 0x10
jne 0x1400ad40c
cmp qword [rbp + 0x1c8], r14
jne 0x1400ad40c
xor r9d, r9d
mov r8, rbx
mov rdx, rdi
mov rcx, rbp
mov qword [rsp + 0x20], r14
call fcn.1400733f0
mov rcx, rdi
call fcn.140064760
mov eax, dword [rbp + 0x1a8]
test al, 4
jne 0x1400ad45e
test al, 0x20
jne 0x1400ad45e
test al, 0x10
jne 0x1400ad45e
cmp qword [rbp + 0x1c8], r14
jne 0x1400ad454
mov ecx, 0x438
call fcn.140010258
xor r9d, r9d
mov r8d, 0x438
mov rcx, rax
mov rdx, rbx
mov qword [rbp + 0x1c8], rax
call fcn.14002a480
mov dword [rsp + 0x40], 1
jmp 0x1400ad465
mov qword [rbp + 0x1c8], r13
test rbx, rbx
je 0x1400ad472
mov rcx, rbx
call fcn.140064760
lea rdx, [rsp + 0x80]
mov rcx, r15
call fcn.1400c2810
mov rbx, rax
mov qword [rsp + 0x60], rax
test rax, rax
jne 0x1400ad4ee
mov eax, dword [rbp + 0x88]
mov edx, dword [rsp + 0x80]
test eax, eax
je 0x1400ad4b4
cmp edx, 0xfffffff1
je 0x1400ad4b6
cmp edx, 0xfffffffd
je 0x1400ad4b6
cmp edx, 0xffffff9f
je 0x1400ad4b6
cmp edx, 0xffffffa3
je 0x1400ad4b6
mov eax, edx
mov r8d, dword [rsp + 0x84]
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov rcx, rbp
mov dword [rsp + 0x28], 0xff
mov dword [rbp + 0x88], eax
mov qword [rsp + 0x20], r14
call fcn.14006b500
mov rcx, r13
call fcn.140064760
jmp 0x1400ad806
cmp dword [rsi + 0xc8], 1
mov r15d, r14d
jne 0x1400ad61c
mov eax, dword [rsi + 0xf0]
lea rdx, [rsp + 0x530]
xor ecx, ecx
mov dword [rsp + 0x58], eax
mov eax, dword [rsi + 0xf4]
mov r12d, r14d
mov dword [rsp + 0x54], eax
mov eax, dword [rsi + 0xf8]
mov dword [rsp + 0x5c], eax
mov eax, dword [rsi + 0xfc]
mov dword [rsp + 0x50], eax
call fcn.140069ed0
lea rcx, [rsp + 0x530]
call fcn.140069de0
cmp dword [rsi + 0xdc], r14d
jle 0x1400ad5fa
xor edi, edi
mov rbp, rax
nop word [rax + rax]
mov rcx, qword [rsi + 0xe0]
mov rcx, qword [rdi + rcx + 0x30]
call fcn.14006a4d0
mov rcx, rbp
mov rbx, rax
call fcn.14006a4d0
cmp rax, rbx
jle 0x1400ad5c0
mov rax, qword [rsi + 0xe0]
cmp dword [rdi + rax + 0x3c], 0
jne 0x1400ad5c0
cmp dword [rdi + rax + 0x38], 1
jne 0x1400ad5dc
cmp dword [rdi + rax + 0x14], 0
jne 0x1400ad5dc
cmp dword [rdi + rax + 0x10], 0
jne 0x1400ad5dc
cmp dword [rdi + rax + 0x1c], 0
jne 0x1400ad5dc
cmp dword [rdi + rax + 0x18], 0
jne 0x1400ad5dc
cmp dword [rdi + rax + 0x24], 0
jne 0x1400ad5dc
cmp dword [rdi + rax + 0x20], 0
jne 0x1400ad5dc
mov rcx, qword [rsi + 0xe0]
add rcx, rdi
mov eax, dword [rcx + 0x20]
add eax, dword [rcx + 0x18]
add r15d, eax
mov eax, dword [rcx + 0x24]
add eax, dword [rcx + 0x1c]
add r12d, eax
inc r14d
add rdi, 0x48
cmp r14d, dword [rsi + 0xdc]
jl 0x1400ad560
mov rbp, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov r14d, dword [rsp + 0x50]
add r15d, dword [rsp + 0x5c]
add r14d, r12d
add r14d, dword [rsp + 0x54]
add r15d, dword [rsp + 0x58]
jne 0x1400ad61c
test r14d, r14d
je 0x1400ad806
mov r12, qword [rsp + 0x70]
mov rcx, qword [rbx + 0x430]
xor r9d, r9d
lea rdx, [rbx + 0x22b]
lea r8d, [r9 + 0xb]
add rcx, 0x1c
call fcn.14002aca0
mov rdx, qword [str.permanent]
xor r8d, r8d
mov rcx, r12
call fcn.14002a750
mov rdx, r12
lea rcx, [rbx + 0x22b]
test eax, eax
cmove rdx, qword [str.1_jan_0]
xor r9d, r9d
lea r8d, [r9 + 0xb]
call fcn.14002aca0
mov eax, dword [rbx + 0x244]
mov rcx, qword [rbx + 0x430]
mov dword [rcx + 0x28], eax
mov eax, dword [rbx + 0x2a4]
mov rcx, qword [rbx + 0x430]
mov dword [rcx + 0x2c], eax
mov eax, dword [rbx + 0x244]
xor edi, edi
mov ecx, edi
imul eax, r15d
mov dword [rbx + 0x244], eax
mov eax, dword [rbx + 0x2a4]
imul eax, r14d
mov dword [rbx + 0x2a4], eax
mov rax, qword [rbx + 0x430]
or dword [rax + 0x18], 4
mov rax, qword [rbx + 0x430]
or dword [rax + 0x18], 8
mov rax, qword [rbx + 0x430]
or dword [rax + 0x18], 0x10
mov rax, qword [rbx + 0x430]
mov qword [rbx + 0x260], r13
mov dword [rax + 0x30], 1
cmp dword [rsi + 4], ecx
mov rax, qword [rbx + 0x430]
setne cl
mov dword [rax + 0x34], ecx
mov rax, qword [rbx + 0x430]
mov ecx, edi
cmp dword [rsi + 8], ecx
setne cl
mov dword [rax + 0x38], ecx
mov rax, qword [rbx + 0x430]
mov ecx, dword [rsp + 0x40]
mov dword [rax + 0x3c], ecx
cmp byte [rbx + 0x2b4], dil
jne 0x1400ad73a
mov eax, dword [rbx + 0x244]
mov dword [rbx + 0x418], 1
mov dword [rbx + 0x410], eax
mov dword [rbx + 0x414], 1
mov dword [rbx + 0x41c], edi
mov rcx, qword [rsi + 0x28]
xor edx, edx
mov dword [rsp + 0x40], edi
call fcn.14002a9d0
mov rcx, rbp
lea rdx, [rax + 1]
call fcn.140064770
mov qword [rbx + 0x350], rax
test rax, rax
je 0x1400ad7a2
mov rdx, qword [rsi + 0x28]
xor r8d, r8d
mov rcx, rax
call fcn.14002a840
mov rbx, qword [rbx + 0x420]
test rbx, rbx
jne 0x1400ad621
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x60]
mov qword [rax], rcx
lea eax, [rbx + 1]
jmp 0x1400ad808
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov r8d, 0xa03c
lea edx, [r9 - 0x28]
mov rcx, rbp
mov dword [rsp + 0x28], 0xff
mov dword [rbp + 0x88], 0xffffffd8
mov qword [rsp + 0x20], rdi
call fcn.14006b500
jmp 0x1400ad806
mov rcx, r13
jmp 0x1400ad7e2
test rax, rax
je 0x1400ad7e7
mov rcx, rax
call fcn.140064760
mov rax, qword [rsp + 0x48]
mov qword [rax], 0
test rbx, rbx
je 0x1400ad806
mov rcx, rbx
call fcn.140064760
jmp 0x1400ad806
mov qword [r13], rbx
xor eax, eax
mov r14, qword [rsp + 0x548]
mov r12, qword [rsp + 0x550]
mov rdi, qword [rsp + 0x558]
mov rbx, qword [rsp + 0x598]
mov r15, qword [rsp + 0x540]
mov rcx, qword [rsp + 0x538]
xor rcx, rsp
call fcn.14000c9f0
add rsp, 0x560
pop r13
pop rsi
pop rbp
ret