Function at 0x18004db30
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
sub rsp, 0xb8
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x180099e80]
xor rax, rsp
mov qword [rsp + 0xa8], rax
cmp qword [rsp + 0xc8], 0
jne 0x18004db78
xor eax, eax
jmp 0x18004df35
xor eax, eax
test eax, eax
jne 0x18004db66
mov rax, qword [rsp + 0xc8]
add rax, 4
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0xc0]
add rax, 8
mov r8d, 4
mov rdx, rax
mov rcx, qword [rsp + 0x20]
call fcn.18005c160
mov rax, qword [rsp + 0x20]
add rax, 4
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0xc0]
add rax, 0xc
mov r8d, 4
mov rdx, rax
mov rcx, qword [rsp + 0x20]
call fcn.18005c160
mov rax, qword [rsp + 0x20]
add rax, 4
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0xc0]
add rax, 0x10
mov r8d, 4
mov rdx, rax
mov rcx, qword [rsp + 0x20]
call fcn.18005c160
mov rax, qword [rsp + 0x20]
add rax, 4
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0xc0]
add rax, 0x14
mov r8d, 4
mov rdx, rax
mov rcx, qword [rsp + 0x20]
call fcn.18005c160
mov rax, qword [rsp + 0x20]
add rax, 4
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0xc0]
add rax, 0x18
mov r8d, 4
mov rdx, rax
mov rcx, qword [rsp + 0x20]
call fcn.18005c160
mov rax, qword [rsp + 0x20]
add rax, 4
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0xc0]
add rax, 0x1c
mov r8d, 4
mov rdx, rax
mov rcx, qword [rsp + 0x20]
call fcn.18005c160
mov rax, qword [rsp + 0x20]
add rax, 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x58], 0
mov rax, qword [rsp + 0xc0]
add rax, 0x20
mov rcx, qword [rsp + 0xc0]
mov rcx, qword [rcx + 0x20]
mov qword [rsp + 0x48], rcx
mov r9d, 0xffffffff
lea r8, [rsp + 0x58]
mov rdx, qword [rsp + 0x20]
mov rcx, rax
mov rax, qword [rsp + 0x48]
call qword [rax + ioctlsocket]
test eax, eax
jne 0x18004dce8
xor eax, eax
jmp 0x18004df35
xor eax, eax
test eax, eax
jne 0x18004dca5
mov dword [rsp + 0x58], 0
lea rcx, [rsp + 0x68]
call fcn.18004d750
nop
mov r9d, 0xffffffff
lea r8, [rsp + 0x58]
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x68]
call fcn.18004e540
test eax, eax
jne 0x18004dd3a
mov dword [rsp + 0x38], 0
lea rcx, [rsp + 0x68]
call fcn.18004d8b0
mov eax, dword [rsp + 0x38]
jmp 0x18004df35
xor eax, eax
test eax, eax
jne 0x18004dd01
mov eax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0xc0]
cmp qword [rax + 0x40], 0
je 0x18004dd7a
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rax + 0x40]
call fcn.18004e950
mov dword [rsp + 0x2c], eax
jmp 0x18004dd82
mov dword [rsp + 0x2c], 0
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x5c], eax
mov r8d, 4
lea rdx, [rsp + 0x5c]
mov rcx, qword [rsp + 0x20]
call fcn.18005c160
mov rax, qword [rsp + 0x20]
add rax, 4
mov qword [rsp + 0x20], rax
cmp dword [rsp + 0x5c], 0
jbe 0x18004decd
mov dword [rsp + 0x28], 0
jmp 0x18004ddcc
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x28], eax
jae 0x18004decd
mov dword [rsp + 0x58], 0
mov edx, dword [rsp + 0x28]
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rax + 0x40]
call fcn.18004d8e0
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
mov r9d, 0xffffffff
lea r8, [rsp + 0x58]
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
call qword [rax + ioctlsocket]
test eax, eax
jne 0x18004de3b
mov dword [rsp + 0x34], 0
lea rcx, [rsp + 0x68]
call fcn.18004d8b0
mov eax, dword [rsp + 0x34]
jmp 0x18004df35
xor eax, eax
test eax, eax
jne 0x18004dde2
mov dword [rsp + 0x58], 0
lea rcx, [rsp + 0x88]
call fcn.18004d750
nop
mov r9d, 0xffffffff
lea r8, [rsp + 0x58]
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x88]
call fcn.18004e540
test eax, eax
jne 0x18004dea1
mov dword [rsp + 0x30], 0
lea rcx, [rsp + 0x88]
call fcn.18004d8b0
nop
lea rcx, [rsp + 0x68]
call fcn.18004d8b0
mov eax, dword [rsp + 0x30]
jmp 0x18004df35
xor eax, eax
test eax, eax
jne 0x18004de57
mov eax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x88]
call fcn.18004d8b0
jmp 0x18004ddc2
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov eax, eax
sub rax, 4
mov dword [rsp + 0x60], eax
mov r8d, 4
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0xc8]
call fcn.18005c160
cmp qword [rsp + 0xd0], 0
je 0x18004df1f
mov eax, dword [rsp + 0x60]
add rax, 4
mov rcx, qword [rsp + 0xd0]
mov dword [rcx], eax
mov dword [rsp + 0x3c], 1
lea rcx, [rsp + 0x68]
call fcn.18004d8b0
mov eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.18005cf60
add rsp, 0xb8
ret