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

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
push rsi
push r12
push r14
push r15
sub rsp, 0x68
mov qword [rax + 0x10], rbx
mov r12d, edx
mov qword [rax - 0x28], rbp
mov qword [rax - 0x30], rdi
mov rdi, rcx
mov qword [rsp + 0x40], rcx
call fcn.140094390
mov rsi, rax
mov eax, dword [rdi + 0x50]
dec eax
mov rcx, rsi
mov dword [rsp + 0x30], eax
call fcn.140056400
cmp dword [rsp + 0xc8], 0
mov r14, qword [rsp + 0xb0]
mov dword [rsp + 0x90], eax
jge 0x1400841bc
movzx r8d, byte [r14 + 0x2c]
mov r9d, eax
mov edx, 0x88
mov dword [rsp + 0x20], 0
mov rcx, rsi
call fcn.140056030
mov r15d, dword [rsp + 0xc0]
xor ebx, ebx
mov qword [rsp + 0x50], r13
mov r13, qword [rsp + 0xb8]
cmp dword [r14 + 0x28], ebx
jle 0x140084225
mov rbp, qword [rsp + 0xb0]
mov r14, r13
mov edi, dword [rsp + 0x90]
nop dword [rax + rax]
mov eax, dword [r14]
lea r8d, [r15 + 1]
add r8d, eax
mov dword [rsp + 0x20], 0
mov r9d, edi
mov edx, Ordinal_79
mov rcx, rsi
call fcn.140056030
inc ebx
lea r14, [r14 + 4]
cmp ebx, dword [rbp + 0x28]
jl 0x1400841f0
mov rdi, qword [rsp + 0x40]
mov r14, rbp
cmp dword [rsp + 0xd0], 0
lea rbp, [0x140330198]
jne 0x140084751
mov rbx, qword [rsp + 0xa8]
test rbx, rbx
jne 0x140084428
movzx eax, byte [rdi + 0x1f]
test al, al
jne 0x14008425b
inc dword [rdi + 0x54]
mov ebx, dword [rdi + 0x54]
jmp 0x140084267
dec al
movzx eax, al
mov byte [rdi + 0x1f], al
mov ebx, dword [rdi + rax*4 + 0x24]
lea r8d, [r15 + 1]
mov dword [rsp + 0x20], 0
add r8d, dword [r13]
mov r9d, ebx
mov edx, reloc.WLDAP32.dll_Ordinal_32
mov rcx, rsi
call fcn.140056030
xor r9d, r9d
mov dword [rsp + 0x20], 0
mov r8d, ebx
mov rcx, rsi
lea edx, [r9 + 0x26]
call fcn.140056030
mov r13, qword [rsp + 0xa0]
mov ebp, eax
cmp r13, qword [r14]
jne 0x140084300
cmp dword [rsp + 0xc8], 1
jne 0x140084300
mov r9d, dword [rsp + 0x90]
mov r8d, r15d
mov edx, reloc.WLDAP32.dll_Ordinal_79
mov dword [rsp + 0x20], ebx
mov rcx, rsi
call fcn.140056030
mov rax, qword [rsi]
mov ecx, dword [rsi + 0x3c]
dec ecx
cmp byte [rax + 0x51], 0
je 0x1400842ed
lea rax, [0x140330198]
jmp 0x1400842fc
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 8]
lea rax, [rax + rcx*8]
mov byte [rax + 3], 0x90
mov r14d, dword [rsp + 0x30]
mov r9, r13
mov edx, r14d
mov dword [rsp + 0x20], gethostname
mov r8d, r12d
mov rcx, rdi
call fcn.140086c20
xor r9d, r9d
mov dword [rsp + 0x20], ebx
mov r8d, r14d
mov rcx, rsi
lea edx, [r9 + 0x49]
call fcn.140056030
mov r15d, dword [rsp + 0x90]
xor r12d, r12d
mov r9d, r15d
mov dword [rsp + 0x20], r12d
xor r8d, r8d
mov rcx, rsi
lea edx, [r12 + 0xe]
call fcn.140056030
mov edx, dword [rsi + 0x3c]
mov rax, qword [rsi + 0x30]
lea ecx, [rdx - 1]
add edx, 0xfffffffe
mov dword [rax + 0x64], ecx
mov r8d, dword [rsi + 0x3c]
jns 0x140084371
lea edx, [r8 - 1]
mov rax, qword [rsi]
cmp byte [rax + 0x51], r12b
je 0x140084383
lea rax, [0x140330198]
jmp 0x140084392
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 8]
lea rax, [rax + rcx*8]
mov dword [rax + 8], r8d
mov ecx, dword [rsi + 0x3c]
mov rax, qword [rsi + 0x30]
dec ecx
mov dword [rax + 0x64], ecx
mov edx, dword [rsi + 0x3c]
test ebp, ebp
jns 0x1400843ac
lea ebp, [rdx - 1]
mov rax, qword [rsi]
cmp byte [rax + 0x51], r12b
je 0x1400843c1
lea rbp, [0x140330198]
mov rax, rbp
jmp 0x1400843d7
movsxd rax, ebp
lea rbp, [0x140330198]
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 8]
lea rax, [rax + rcx*8]
mov dword [rax + 8], edx
test ebx, ebx
je 0x140084761
movzx edx, byte [rdi + 0x1f]
cmp dl, 8
jae 0x140084761
mov ecx, r12d
lea rax, [rdi + 0x88]
nop dword [rax]
cmp dword [rax + 0xc], ebx
je 0x14008441f
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x140084400
movzx eax, dl
mov dword [rdi + rax*4 + 0x24], ebx
inc byte [rdi + 0x1f]
jmp 0x140084761
mov byte [rax + 6], 1
jmp 0x140084761
movsxd r14, dword [r14 + 0x28]
mov ecx, dword [rdi + 0x44]
mov ebp, dword [rdi + 0x48]
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x34], ebp
cmp r14d, ecx
jg 0x14008444f
lea eax, [r14 + rbp]
sub ecx, r14d
mov dword [rdi + 0x48], eax
mov dword [rdi + 0x44], ecx
jmp 0x14008445f
mov eax, dword [rdi + 0x54]
lea ebp, [rax + 1]
add eax, r14d
mov dword [rdi + 0x54], eax
mov dword [rsp + 0x34], ebp
movzx eax, byte [rdi + 0x1f]
test al, al
jne 0x14008446f
inc dword [rdi + 0x54]
mov eax, dword [rdi + 0x54]
jmp 0x14008447b
dec al
movzx eax, al
mov byte [rdi + 0x1f], al
mov eax, dword [rdi + rax*4 + 0x24]
mov r9d, dword [rbx + 0x58]
mov edx, gethostname
mov r8d, dword [rsp + 0x30]
mov rcx, rsi
mov dword [rsp + 0xd0], eax
mov dword [rsp + 0x20], r12d
call fcn.140056030
mov rdx, rbx
mov rcx, rdi
call fcn.140056bb0
xor ebx, ebx
mov r12, r14
test r14d, r14d
jle 0x1400844dd
lea r8d, [r15 + 1]
mov dword [rsp + 0x20], 0
add r8d, dword [r13 + rbx*4]
mov r9d, ebp
mov edx, Ordinal_33
mov rcx, rsi
call fcn.140056030
inc ebp
inc rbx
cmp rbx, r12
jl 0x1400844b2
mov rbp, qword [rsp + 0xb0]
mov rdx, qword [rsp + 0xa0]
cmp rdx, qword [rbp]
jne 0x140084600
cmp dword [rsp + 0xc8], 1
jne 0x140084600
mov eax, dword [rsi + 0x3c]
xor ebx, ebx
inc eax
add eax, r14d
test r14d, r14d
jle 0x1400845de
mov edi, eax
nop word [rax + rax]
mov eax, dword [r13 + rbx*4]
lea ebp, [r15 + 1]
movsxd r14, dword [rsi + 0x3c]
lea r13d, [r15 + 1]
add r13d, eax
mov rax, qword [rsp + 0xa8]
mov rax, qword [rax + 8]
movsx ecx, word [rax + rbx*2]
mov rax, qword [rsi + 0x30]
add ebp, ecx
cmp cx, word [rdx + 0x3c]
cmove ebp, r15d
cmp dword [rax + 0x60], r14d
jg 0x140084564
mov rcx, rsi
call fcn.140055f80
test eax, eax
jne 0x140084590
mov rax, qword [rsi + 8]
lea rcx, [r14 + r14*2]
inc dword [rsi + 0x3c]
mov word [rax + rcx*8], Ordinal_79
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r13d
mov dword [rax + rcx*8 + 8], edi
mov dword [rax + rcx*8 + 0xc], ebp
mov qword [rax + rcx*8 + 0x10], 0
mov rax, qword [rsi]
mov ecx, dword [rsi + 0x3c]
dec ecx
cmp byte [rax + 0x51], 0
je 0x1400845a7
lea rax, [0x140330198]
jmp 0x1400845b6
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 8]
lea rax, [rax + rcx*8]
mov r13, qword [rsp + 0xb8]
inc rbx
mov rdx, qword [rsp + 0xa0]
mov byte [rax + 3], reloc.WS2_32.dll_recv
cmp rbx, r12
jl 0x140084520
mov rdi, qword [rsp + 0x40]
mov r14d, r12d
mov r9d, dword [rsp + 0x90]
xor r12d, r12d
xor r8d, r8d
mov dword [rsp + 0x20], r12d
mov rcx, rsi
lea edx, [r12 + 0xe]
call fcn.140056030
jmp 0x140084603
xor r12d, r12d
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rdi]
call fcn.140086cf0
mov ebp, dword [rsp + 0xd0]
mov r9d, r14d
mov r14d, dword [rsp + 0x34]
mov edx, gethostbyname
mov r8d, r14d
mov dword [rsp + 0x20], ebp
mov rcx, rsi
mov rbx, rax
call fcn.140056030
mov r15d, dword [rsp + 0x38]
mov r8, rbx
mov r9d, r15d
mov edx, eax
mov rcx, rsi
call fcn.140056aa0
mov r9d, dword [rsp + 0x90]
mov edx, 0x46
mov r8d, dword [rsp + 0x30]
mov rcx, rsi
mov dword [rsp + 0x20], ebp
call fcn.140056030
mov r8, qword [rsi + 8]
mov rcx, qword [rsi]
test r8, r8
je 0x1400846ae
cmp byte [rcx + 0x51], 0
jne 0x1400846ae
test eax, eax
jns 0x140084687
mov eax, dword [rsi + 0x3c]
dec eax
cdqe
lea rdx, [rax + rax*2]
lea rbx, [r8 + rdx*8]
movsx edx, byte [r8 + rdx*8 + 1]
mov r8, qword [rbx + 0x10]
call fcn.140056780
mov qword [rbx + 0x10], r12
mov dword [rbx + 0x10], r12d
mov byte [rbx + 1], 0xf2
jmp 0x1400846ba
xor r8d, r8d
lea edx, [r8 - 0xe]
call fcn.140056780
test ebp, ebp
je 0x1400846f1
movzx edx, byte [rdi + 0x1f]
cmp dl, 8
jae 0x1400846f1
mov ecx, r12d
lea rax, [rdi + 0x88]
cmp dword [rax + 0xc], ebp
je 0x1400846ed
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x1400846d1
movzx eax, dl
mov dword [rdi + rax*4 + 0x24], ebp
inc byte [rdi + 0x1f]
jmp 0x1400846f1
mov byte [rax + 6], 1
lea r9d, [r15 - 1]
mov r8d, 0xa
add r9d, r14d
lea rcx, [rdi + 0x94]
mov edx, dword [rcx]
cmp edx, r14d
jl 0x140084730
cmp edx, r9d
jg 0x140084730
cmp byte [rcx - 6], 0
je 0x14008472d
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x140084729
movzx eax, al
mov dword [rdi + rax*4 + 0x24], edx
inc byte [rdi + 0x1f]
mov byte [rcx - 6], 0
mov dword [rcx], r12d
add rcx, 0x14
sub r8, 1
jne 0x140084705
lea rbp, [0x140330198]
cmp r15d, dword [rdi + 0x44]
jle 0x140084754
mov dword [rdi + 0x44], r15d
mov dword [rdi + 0x48], r14d
jmp 0x140084754
xor r12d, r12d
mov r15d, dword [rsp + 0x90]
mov r14d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0xb0]
mov r13, qword [rsp + 0x50]
movzx ecx, byte [rdx + 0x2c]
test cl, cl
jne 0x140084808
mov rax, qword [rdi]
test dword [rax + 0x2c], 0x1000000
jne 0x140084808
cmp qword [rdi + 0x1c0], 0
jne 0x140084808
cmp byte [rdi + 0x20], cl
jne 0x140084808
mov rcx, rdi
call fcn.140094390
mov rcx, qword [rdi + 0x1c0]
mov edx, reloc.WS2_32.dll_shutdown
test rcx, rcx
mov dword [rsp + 0x20], r12d
mov r8d, 0x313
mov rbx, rax
cmovne rdi, rcx
mov rcx, rax
lea r9d, [rdx - 0x14]
mov byte [rdi + 0x21], 1
call fcn.140056030
mov r9d, 0xfffffffe
xor r8d, r8d
mov edx, eax
mov rcx, rbx
call fcn.140056aa0
mov rax, qword [rbx]
mov ecx, dword [rbx + 0x3c]
dec ecx
cmp byte [rax + 0x51], 0
jne 0x140084802
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 8]
lea rbp, [rax + rcx*8]
mov byte [rbp + 3], 4
jmp 0x140084842
mov r9d, dword [rsp + 0xc8]
test r9d, r9d
jle 0x14008482b
test cl, cl
jne 0x14008482b
mov rax, qword [rdi + 0x1c0]
test rax, rax
cmovne rdi, rax
mov byte [rdi + 0x21], 1
movzx r8d, byte [rdx + 0x2c]
mov rcx, rsi
mov edx, 0x87
mov dword [rsp + 0x20], r12d
call fcn.140056030
mov r9, qword [rsi + 0x30]
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x98]
mov rdx, qword [r9 + 0x80]
test rdx, rdx
je 0x140084873
or eax, 0xffffffff
sub eax, r15d
movsxd rcx, eax
mov eax, dword [rsi + 0x3c]
mov dword [rdx + rcx*4], eax
mov eax, dword [rsi + 0x3c]
mov r8d, r14d
dec eax
mov dword [rsp + 0xb0], r12d
mov dword [r9 + 0x64], eax
mov rcx, rsi
xor r9d, r9d
lea edx, [r9 + 0x3d]
add rsp, 0x68
pop r15
pop r14
pop r12
pop rsi
jmp fcn.140056030