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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov r13, qword [rdx]
mov rbx, rdx
mov rsi, qword [rcx + 0x10]
xor edi, edi
movsxd r12, r9d
mov rbp, r8
mov r11, rcx
mov qword [rsp + 0x58], r13
movzx edx, byte [r13]
mov r15d, 0x400
lea eax, [rdx - 0x2d]
test al, 0xf7
je 0x18020bf21
cmp dl, 0x32
jne 0x18020b8a7
mov r14d, dword [rsp + 0xd8]
lea edx, [rdi + 0x48]
mov r9d, r14d
xor r8d, r8d
mov rcx, rsi
call fcn.180265bc0
jmp 0x18020be22
mov r10, qword [r8 + 0x50]
mov r14d, 5
mov dword [rsp + 0x38], r14d
mov ebp, edi
mov qword [rsp + 0x48], r10
mov r15, rdi
test dword [r10 + 0x28], 0x400
jne 0x18020b8eb
mov rax, qword [r10 + 0x20]
test rax, rax
je 0x18020b8eb
mov rax, qword [rax + 0x38]
cmp byte [r12 + rax], dil
je 0x18020b8eb
cmp dword [rsp + 0xd0], edi
mov eax, edi
sete al
jmp 0x18020b8f2
mov eax, dword [rsp + 0xd0]
mov dword [rsp + 0x34], eax
test r9d, r9d
jle 0x18020b91c
mov r8, qword [r10 + 0x38]
mov rax, rdi
mov rcx, qword [r8 + rax*8]
test rcx, rcx
je 0x18020b914
cmp qword [rcx], r13
je 0x18020b9bf
inc rax
cmp rax, r12
jl 0x18020b902
movzx r8d, word [r10 + 0x2c]
cmp r12d, r8d
jge 0x18020b958
mov rax, qword [r10 + 0x38]
sub r8d, r12d
lea rdx, [rax + r12*8]
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rdx]
lea ecx, [rbp + 1]
lea rdx, [rdx + 8]
cmp qword [rax], r13
cmovne ecx, ebp
mov ebp, ecx
sub r8, 1
jne 0x18020b940
test dword [r13 + 4], 0x800
mov dword [rsp + 0x30], edi
je 0x18020ba4c
mov rax, qword [r13 + 0x20]
mov rcx, qword [rax + 0x20]
cmp dword [rcx], 1
je 0x18020ba4c
mov r9, qword [rsp + 0x58]
mov r8, r10
mov r13, qword [r11]
mov edx, r12d
mov rcx, r11
call fcn.180229bd0
mov r12, rax
cmp byte [r13 + 0x61], dil
jne 0x18020ba2f
mov rcx, qword [rsp + 0xb0]
movsxd r14, ebp
shl r14, 2
mov rcx, qword [rcx]
test rcx, rcx
je 0x18020b9db
mov rdx, r14
call fcn.18023cbb0
jmp 0x18020b9e3
mov rcx, qword [rsp + 0xc0]
mov rdx, rbx
call fcn.180210e60
mov eax, dword [rsp + 0xd8]
jmp 0x18020bf6b
mov rcx, r14
call fcn.180250dc0
mov r15, rax
test rax, rax
je 0x18020b9f8
mov r8, r14
xor edx, edx
mov rcx, rax
call fcn.1802c7550
mov rcx, qword [rsp + 0xb0]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov rdx, r12
mov qword [rsp + 0x20], r15
lea r8d, [r9 + 4]
call fcn.1802455e0
mov ecx, dword [rsp + 0x30]
mov r14d, eax
mov dword [rsp + 0x38], eax
mov rax, qword [rbx]
mov dword [rax + 0x2c], ecx
test r12, r12
je 0x18020ba3f
mov rdx, r12
mov rcx, r13
call fcn.180243820
mov r13, qword [rbx]
mov r12d, dword [rsp + 0xc8]
jmp 0x18020ba74
xor r9d, r9d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rdx, r13
mov rcx, r11
mov qword [rsp + 0x20], rdi
lea r8d, [r9 + 4]
call fcn.1802455e0
mov r14d, eax
mov dword [rsp + 0x38], eax
cmp r14d, 4
jne 0x18020ba89
cmp dword [rsp + 0x34], edi
mov eax, edi
sete al
mov dword [rsp + 0x34], eax
jmp 0x18020ba8d
mov eax, dword [rsp + 0x34]
test eax, eax
mov ecx, 0x21
mov edx, 0x25
cmovne edx, ecx
movsxd rcx, dword [rsi + 0x90]
cmp dword [rsi + 0x94], ecx
jg 0x18020bac1
mov r8d, dword [rsp + 0x30]
xor r9d, r9d
mov rcx, rsi
mov dword [rsp + 0x20], edi
call fcn.18021bc70
jmp 0x18020baf4
lea eax, [rcx + 1]
mov dword [rsi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rsi + 0x88]
mov byte [rax + rcx*8], dl
mov edx, dword [rsp + 0x30]
mov dword [rax + rcx*8 + 4], edx
mov word [rax + rcx*8 + 2], di
mov qword [rax + rcx*8 + 8], rdi
mov qword [rax + rcx*8 + 0x10], rdi
mov byte [rax + rcx*8 + 1], dil
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0xc0]
mov r9, qword [rsp + 0xb0]
or dword [rdx + 0x28], 0x800
cmp dword [rcx + 0x40], edi
jne 0x18020bb20
dec dword [r9 + 0x44]
mov eax, dword [r9 + 0x44]
mov dword [rcx + 0x10], eax
test r12d, r12d
jle 0x18020bb35
mov eax, dword [rdx + 0x28]
bt eax, 0x14
jb 0x18020bb35
bts eax, 0x12
mov dword [rdx + 0x28], eax
movsxd r14, dword [rcx + 0x40]
lea eax, [r14 + rbp]
mov rbp, qword [rsp + 0xc0]
mov rdx, qword [rbp + 0x48]
mov dword [rbp + 0x40], eax
mov rcx, qword [r9]
cdqe
lea r8, [rax + rax*4]
shl r8, 2
call fcn.18023cd50
mov qword [rbp + 0x48], rax
mov rdx, rax
test rax, rax
je 0x18020bde7
mov r8, qword [rsp + 0x48]
lea rcx, [r14*4 + 1]
movzx eax, word [r8 + 0x2c]
cmp r12d, eax
jge 0x18020bd7e
movsxd r11, dword [rsp + 0x38]
add r14, rcx
mov ecx, dword [rsp + 0xd8]
mov r10, r15
mov ebx, dword [rsp + 0x30]
mov ebp, ecx
movsxd rax, r12d
lea r14, [rdx + r14*4]
mov qword [rsp + 0x50], r15
mov edx, ecx
sub edx, r12d
lea r9, [rax*8]
mov dword [rsp + 0x3c], edx
mov eax, r12d
mov qword [rsp + 0x58], r9
sub eax, ecx
mov dword [rsp + 0x40], eax
nop dword [rax]
mov rax, qword [r8 + 0x38]
mov rcx, qword [r9 + rax]
cmp qword [rcx], r13
jne 0x18020bd4a
cmp r11, 1
jne 0x18020bc38
movsxd rdx, dword [rsi + 0x90]
cmp dword [rsi + 0x94], edx
jg 0x18020bc13
mov r9d, ebp
mov dword [rsp + 0x20], edi
mov r8d, ebx
lea edx, [r11 + 0x7f]
mov rcx, rsi
call fcn.18021bc70
mov edx, eax
jmp 0x18020bca5
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rsi + 0x90], eax
mov rax, qword [rsi + 0x88]
mov dword [rax + rcx*8], 0x80
mov dword [rax + rcx*8 + 8], ebp
mov dword [rax + rcx*8 + 0xc], edi
jmp 0x18020bc9c
test r15, r15
je 0x18020bc4b
mov r8d, dword [r10]
add r10, 4
mov qword [rsp + 0x50], r10
jmp 0x18020bc4e
mov r8d, edi
movsxd rdx, dword [rsi + 0x90]
cmp dword [rsi + 0x94], edx
jg 0x18020bc78
mov r9d, r8d
mov dword [rsp + 0x20], ebp
mov r8d, ebx
mov edx, 0x59
mov rcx, rsi
call fcn.18021bc70
mov edx, eax
jmp 0x18020bca5
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rsi + 0x90], eax
mov rax, qword [rsi + 0x88]
mov dword [rax + rcx*8], 0x59
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 0xc], ebp
mov qword [rax + rcx*8 + 0x10], rdi
mov dword [rax + rcx*8 + 4], ebx
mov dword [r14], edx
movsxd rcx, dword [rsi + 0x90]
cmp dword [rsi + 0x94], ecx
jg 0x18020bccf
xor r9d, r9d
mov dword [rsp + 0x20], edi
mov r8d, ebp
mov rcx, rsi
lea edx, [r9 + 0x32]
call fcn.18021bc70
jmp 0x18020bcf8
lea eax, [rcx + 1]
mov dword [rsi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rsi + 0x88]
mov dword [rax + rcx*8], gethostbyname
mov dword [rax + rcx*8 + 4], ebp
mov qword [rax + rcx*8 + 8], rdi
mov qword [rax + rcx*8 + 0x10], rdi
mov ecx, dword [rsp + 0x40]
mov edx, dword [rsp + 0x3c]
add ecx, ebp
cmp ecx, r12d
jne 0x18020bd2d
cmp dword [rsp + 0x34], edi
mov dword [r14 - 4], ebx
sete al
add al, 4
mov byte [r14 + 0xc], al
test r12d, r12d
jle 0x18020bd27
mov dword [r14 + 4], edx
mov dword [r14 + 8], ecx
jmp 0x18020bd32
mov dword [r14 + 8], edi
jmp 0x18020bd32
mov byte [r14 + 0xc], 0xae
mov r8, qword [rsp + 0x48]
add r14, 0x14
mov r9, qword [rsp + 0x58]
mov r10, qword [rsp + 0x50]
movsxd r11, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x40]
inc ebp
movzx eax, word [r8 + 0x2c]
dec edx
add r9, 8
mov dword [rsp + 0x3c], edx
add ecx, ebp
mov qword [rsp + 0x58], r9
cmp ecx, eax
jl 0x18020bbd0
mov rbx, qword [rsp + 0xb8]
mov rbp, qword [rsp + 0xc0]
test r12d, r12d
jle 0x18020bdea
test dword [r8 + 0x28], 0x100400
jne 0x18020bdea
movsxd rcx, dword [rsi + 0x90]
mov edx, dword [rbp + 8]
cmp dword [rsi + 0x94], ecx
jg 0x18020bdb8
xor r9d, r9d
mov dword [rsp + 0x20], r12d
mov r8d, edx
mov rcx, rsi
lea edx, [r9 + 0x77]
call fcn.18021bc70
jmp 0x18020bdea
lea eax, [rcx + 1]
mov dword [rsi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rsi + 0x88]
mov dword [rax + rcx*8], 0x77
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], edi
mov dword [rax + rcx*8 + 0xc], r12d
mov qword [rax + rcx*8 + 0x10], rdi
jmp 0x18020bdea
mov dword [rbp + 0x40], edi
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rax]
test r15, r15
je 0x18020be14
test rcx, rcx
je 0x18020bebb
cmp qword [rcx + 0x2d8], rdi
je 0x18020be74
mov rdx, r15
call fcn.18021f5c0
mov r14d, dword [rsp + 0xd8]
mov r15d, 0x400
test byte [rbx + 0x12], 4
jne 0x18020bf68
mov edx, 0x200
cmp dword [rbp], 0
je 0x18020be44
mov rax, qword [rbx]
test byte [rax + 4], 1
je 0x18020bf68
mov rax, qword [rbx + 0x30]
test qword [rbp + 0x58], rax
jne 0x18020bf68
test edi, edi
je 0x18020bf3a
movzx eax, word [rbx + 0x12]
test r15w, ax
je 0x18020bf3a
or ax, dx
mov word [rbx + 0x12], ax
jmp 0x18020bf3f
cmp r15, qword [rcx + 0x1c8]
jae 0x18020bebb
cmp r15, qword [rcx + 0x1b8]
jb 0x18020be9c
mov rax, qword [rcx + 0x1b0]
mov qword [r15], rax
mov qword [rcx + 0x1b0], r15
jmp 0x18020be14
cmp r15, qword [rcx + 0x1c0]
jb 0x18020bebb
mov rax, qword [rcx + 0x1a0]
mov qword [r15], rax
mov qword [rcx + 0x1a0], r15
jmp 0x18020be14
cmp dword [0x1803fa7e0], edi
je 0x18020bf13
mov rcx, qword [0x180412fb8]
test rcx, rcx
je 0x18020bed5
call qword [0x1803fa860]
mov rcx, r15
call qword [0x1803fa818]
dec qword [0x180413428]
movsxd rcx, eax
sub qword [0x1804133e0], rcx
mov rcx, r15
call qword [0x1803fa808]
mov rcx, qword [0x180412fb8]
test rcx, rcx
je 0x18020be14
call qword [0x1803fa870]
jmp 0x18020be14
mov rcx, r15
call qword [0x1803fa808]
jmp 0x18020be14
mov r8d, dword [rsp + 0xd8]
mov rdx, qword [r13 + 0x18]
call fcn.180241d60
mov r14d, eax
jmp 0x18020be22
or word [rbx + 0x12], 4
movsxd rax, dword [rbx + 0x18]
test eax, eax
js 0x18020bf68
imul rcx, rax, 0x38
mov rax, qword [rbx + 8]
add rcx, qword [rax + 0x20]
mov rbx, rcx
add byte [rcx + 0x16], 0xff
jne 0x18020bf68
inc edi
test byte [rcx + 0x12], 4
je 0x18020be31
mov eax, r14d
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret