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

Disassembly:
mov qword [rsp + 0x18], rbx
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rbx, qword [rcx]
mov rsi, rcx
mov rbp, qword [rcx + 8]
mov r14d, r8d
xor ecx, ecx
mov r12d, edx
mov dword [rsp + 0x30], ecx
mov r13d, dword [rbx + 0x44]
movzx r15d, byte [rbp + 0x20]
dec r13d
mov rdi, qword [rsi + 0x10]
mov byte [rsp + 0x80], r15b
mov dword [rbx + 0x44], r13d
mov dword [rsp + 0x34], ecx
cmp edx, 2
jne 0x1401033f5
cmp byte [rbp + 0x21], 0x5a
jne 0x1401033f5
xor eax, eax
jmp 0x14010382d
mov r9d, reloc.WS2_32.dll_gethostname
test r14d, r14d
jle 0x14010347d
cmp byte [rbp + 0x20], 0x59
jne 0x140103465
mov eax, dword [rdi + 0x90]
mov dword [rsp + 0x34], eax
cmp r12d, 2
jne 0x140103443
cmp byte [rbp + 0x21], 0x56
jne 0x140103422
mov r8d, dword [rsi + 0x34]
jmp 0x140103426
mov r8d, dword [rsi + 0x2c]
mov edx, gethostname
mov eax, 0x2c
cmovne edx, r9d
mov r9d, gethostname
cmovne eax, r9d
mov ecx, dword [rax + rsi]
jmp 0x14010344f
mov r8d, dword [rsi + 0x3c]
mov edx, gethostname
mov ecx, dword [rsi + 0x34]
mov dword [rsp + 0x28], r13d
mov r9d, r14d
mov dword [rsp + 0x20], ecx
mov rcx, rsi
call fcn.140103850
jmp 0x14010347d
mov r9d, r13d
mov dword [rsp + 0x20], 1
mov edx, 0x3b
mov rcx, rdi
call fcn.14019aa50
cmp r12d, 1
jne 0x140103496
cmp dword [rbp + 0x84], 0
jne 0x140103496
xor edx, edx
mov rcx, rsi
call fcn.1401053c0
mov eax, dword [rdi + 0x90]
mov dword [rsp + 0x38], eax
movzx eax, byte [rbp + 0x22]
cmp byte [rbp + 0x21], al
jne 0x1401035a4
test r14d, r14d
je 0x1401035a4
cmp byte [rbp + 0x20], 0x59
jne 0x1401035a4
movzx eax, byte [rbx + 0x1f]
test al, al
jne 0x1401034d8
inc dword [rbx + 0x38]
mov r14d, dword [rbx + 0x38]
inc dword [rbx + 0x38]
mov r15d, dword [rbx + 0x38]
jmp 0x140103505
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov r14d, dword [rbx + rax*4 + 0xe8]
test al, al
jne 0x1401034f5
inc dword [rbx + 0x38]
mov r15d, dword [rbx + 0x38]
jmp 0x140103505
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov r15d, dword [rbx + rax*4 + 0xe8]
cmp r12d, 2
jne 0x140103538
mov r8d, dword [rsi + 0x2c]
mov r9d, r14d
mov edx, 0x87
mov rcx, rdi
call fcn.14019aad0
mov r8d, dword [rsi + 0x3c]
mov r9d, r15d
mov edx, 0x87
mov rcx, rdi
call fcn.14019aad0
mov r8d, r15d
jmp 0x140103556
cmp dword [rsi + 0x28], 0
je 0x14010356b
mov r8d, dword [rsi + 0x3c]
mov r9d, r14d
mov edx, 0x87
mov rcx, rdi
call fcn.14019aad0
mov r8d, dword [rsi + 0x28]
mov r9d, r13d
mov dword [rsp + 0x20], r14d
mov edx, reloc.WS2_32.dll_gethostname
mov rcx, rdi
call fcn.14019aa50
test r14d, r14d
je 0x140103583
movzx eax, byte [rbx + 0x1f]
cmp al, 8
jae 0x140103583
mov dword [rbx + rax*4 + 0xe8], r14d
inc byte [rbx + 0x1f]
test r15d, r15d
je 0x14010359b
movzx eax, byte [rbx + 0x1f]
cmp al, 8
jae 0x14010359b
mov dword [rbx + rax*4 + 0xe8], r15d
inc byte [rbx + 0x1f]
movzx r15d, byte [rsp + 0x80]
mov ecx, r12d
sub ecx, 1
je 0x14010364a
cmp ecx, 1
je 0x140103603
cmp dword [rbp + 0x84], 0
mov r14d, dword [rsi + 0x40]
mov r12d, dword [rsi + 0x3c]
mov dword [rsp + 0x80], r14d
je 0x1401035e9
mov r8d, dword [rbp + 0x88]
mov r9d, 1
mov rcx, rdi
lea edx, [r9 + 0x55]
call fcn.14019aad0
jmp 0x140103660
mov eax, dword [rsi + 0x20]
xor r9d, r9d
mov r8d, r12d
mov dword [rsp + 0x20], eax
mov rdx, rbp
mov rcx, rsi
call fcn.1401057a0
jmp 0x140103660
mov r8d, dword [rbp + 0x84]
mov r9d, 1
mov r14d, dword [rsi + 0x30]
mov r12d, dword [rsi + 0x2c]
mov dword [rsp + 0x80], r14d
test r8d, r8d
je 0x140103633
lea edx, [r9 + 0x55]
mov rcx, rdi
call fcn.14019aad0
jmp 0x140103660
mov eax, dword [rsi + 0x20]
mov r8d, r12d
mov rdx, rbp
mov dword [rsp + 0x20], eax
mov rcx, rsi
call fcn.1401057a0
jmp 0x140103660
mov eax, dword [rsi + 0x38]
mov rcx, rsi
mov r12d, dword [rsi + 0x34]
mov dword [rsp + 0x80], eax
call fcn.140104320
mov eax, dword [rsp + 0x88]
cmp eax, dword [rsi + 0x24]
jne 0x14010369c
mov r8d, r12d
mov edx, 0x82
mov rcx, rdi
call fcn.14019ab40
movsxd rax, dword [rdi + 0x90]
test eax, eax
jle 0x14010369c
lea rcx, [rax + rax*2]
mov edx, 2
mov rax, qword [rdi + 0x88]
mov word [rax + rcx*8 - 0x16], dx
cmp dword [rsp + 0x98], 0
mov r8d, r12d
mov eax, dword [rdi + 0x90]
mov edx, 0x27
mov rcx, rdi
je 0x1401036e0
lea r9d, [rax + 2]
call fcn.14019aad0
mov edx, 9
mov rcx, rdi
call fcn.14019abb0
mov dword [rsp + 0x30], eax
mov r14d, eax
cmp r15b, 0x4c
je 0x14010379d
jmp 0x140103711
xor r9d, r9d
cmp r15b, 0x4c
setne r9b
inc eax
add r9d, eax
call fcn.14019aad0
cmp r15b, 0x4c
je 0x140103798
xor r8d, r8d
mov r9d, r13d
mov rcx, rdi
lea edx, [r8 + 9]
call fcn.14019aad0
mov rax, qword [rbp + 0x18]
test rax, rax
je 0x140103732
mov r14d, dword [rax]
test r14d, r14d
je 0x140103735
mov edx, r14d
mov rcx, rbx
call fcn.1401710a0
mov r15d, eax
jmp 0x140103738
xor r14d, r14d
xor r15d, r15d
mov r8d, r15d
mov edx, r12d
mov rcx, rsi
call fcn.1401061a0
mov eax, dword [rsp + 0x38]
mov r8d, r15d
mov r9d, dword [rsp + 0x80]
mov rcx, rbx
mov rdx, qword [rbp + 0x18]
mov dword [rsp + 0x20], eax
call fcn.140103db0
cmp r14d, 1
jne 0x14010378a
test r15d, r15d
je 0x140103798
movzx eax, byte [rbx + 0x1f]
mov r14d, dword [rsp + 0x30]
cmp al, 8
jae 0x14010379d
mov dword [rbx + rax*4 + 0xe8], r15d
inc byte [rbx + 0x1f]
jmp 0x14010379d
cmp r14d, dword [rbx + 0x28]
jle 0x140103798
mov dword [rbx + 0x28], r14d
mov dword [rbx + 0x2c], r15d
mov r14d, dword [rsp + 0x30]
mov edx, dword [rsp + 0x34]
test edx, edx
je 0x1401037fd
movsxd rcx, dword [rdi + 0x90]
cmp dword [rdi + 0x94], ecx
jg 0x1401037d0
xor r8d, r8d
mov dword [rsp + 0x20], 0
mov r9d, edx
mov rcx, rdi
lea edx, [r8 + 9]
call fcn.14019acc0
jmp 0x1401037fd
lea eax, [rcx + 1]
xor r8d, r8d
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x88]
mov qword [rax + rcx*8], 9
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
mov rcx, qword [rdi + 0x18]
not r13d
mov eax, dword [rcx + 0x48]
add eax, dword [rcx + 0x44]
jns 0x140103819
mov r8d, r13d
mov rdx, rdi
call fcn.140199f70
jmp 0x14010382a
mov rdx, qword [rcx + 0x50]
mov ecx, dword [rdi + 0x90]
movsxd r8, r13d
mov dword [rdx + r8*4], ecx
mov eax, r14d
mov rbx, qword [rsp + 0x90]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret