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

Disassembly:
mov dword [rsp + 0x20], r9d
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x40
mov rbp, qword [rcx + 8]
mov rdi, qword [rcx]
mov rsi, rcx
mov rbx, qword [rsi + 0x10]
xor ecx, ecx
cmp byte [rbp + 0x20], 0x4c
mov eax, ecx
setne al
dec dword [rdi + 0x44]
mov r13d, dword [rdi + 0x44]
mov r14d, r8d
mov r15d, edx
mov dword [rsp + 0x80], eax
mov dword [rsp + 0x34], ecx
mov dword [rsp + 0x30], ecx
cmp edx, 2
jne 0x14018a284
cmp byte [rbp + 0x21], 0x5a
jne 0x14018a284
xor eax, eax
add rsp, 0x40
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
test r8d, r8d
jle 0x14018a310
cmp byte [rbp + 0x20], 0x59
jne 0x14018a2f8
mov eax, dword [rbx + 0x98]
mov dword [rsp + 0x28], r13d
mov r9d, r8d
mov rcx, rsi
mov dword [rsp + 0x30], eax
cmp edx, 2
jne 0x14018a2e1
cmp byte [rbp + 0x21], 0x56
jne 0x14018a2ca
mov eax, dword [rsi + 0x2c]
mov r8d, dword [rsi + 0x34]
mov edx, gethostname
mov dword [rsp + 0x20], eax
call fcn.14018a7b0
jmp 0x14018a329
mov eax, dword [rsi + 0x34]
mov r8d, dword [rsi + 0x2c]
mov edx, reloc.WS2_32.dll_gethostname
mov dword [rsp + 0x20], eax
call fcn.14018a7b0
jmp 0x14018a329
mov eax, dword [rsi + 0x34]
mov r8d, dword [rsi + 0x3c]
mov edx, gethostname
mov dword [rsp + 0x20], eax
call fcn.14018a7b0
jmp 0x14018a310
mov r9d, r13d
mov edx, gethostbyaddr
mov rcx, rbx
mov dword [rsp + 0x20], 1
call fcn.140159550
cmp r15d, 1
jne 0x14018a329
cmp dword [rbp + 0x84], 0
jne 0x14018a329
xor edx, edx
mov rcx, rsi
call fcn.140188ff0
mov eax, dword [rbx + 0x98]
mov qword [rsp + 0x90], r12
mov dword [rsp + 0x38], eax
movzx eax, byte [rbp + 0x22]
cmp byte [rbp + 0x21], al
jne 0x14018a439
test r14d, r14d
je 0x14018a439
cmp byte [rbp + 0x20], 0x59
jne 0x14018a439
movzx eax, byte [rdi + 0x1f]
test al, al
jne 0x14018a36c
inc dword [rdi + 0x38]
mov r14d, dword [rdi + 0x38]
jmp 0x14018a37c
dec al
movzx eax, al
mov byte [rdi + 0x1f], al
mov r14d, dword [rdi + rax*4 + 0xd8]
movzx eax, byte [rdi + 0x1f]
test al, al
jne 0x14018a38d
inc dword [rdi + 0x38]
mov r12d, dword [rdi + 0x38]
jmp 0x14018a39d
dec al
movzx eax, al
mov byte [rdi + 0x1f], al
mov r12d, dword [rdi + rax*4 + 0xd8]
cmp r15d, 2
jne 0x14018a3d0
mov r8d, dword [rsi + 0x2c]
mov r9d, r14d
mov edx, SQLGetDiagFieldW
mov rcx, rbx
call fcn.1401594e0
mov r8d, dword [rsi + 0x3c]
mov r9d, r12d
mov edx, SQLGetDiagFieldW
mov rcx, rbx
call fcn.1401594e0
mov r8d, r12d
jmp 0x14018a3ee
cmp dword [rsi + 0x28], 0
je 0x14018a403
mov r8d, dword [rsi + 0x3c]
mov r9d, r14d
mov edx, SQLGetDiagFieldW
mov rcx, rbx
call fcn.1401594e0
mov r8d, dword [rsi + 0x28]
mov r9d, r13d
mov edx, reloc.WS2_32.dll_gethostname
mov rcx, rbx
mov dword [rsp + 0x20], r14d
call fcn.140159550
test r14d, r14d
je 0x14018a41e
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x14018a41e
movzx eax, al
mov dword [rdi + rax*4 + 0xd8], r14d
inc byte [rdi + 0x1f]
test r12d, r12d
je 0x14018a439
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x14018a439
movzx eax, al
mov dword [rdi + rax*4 + 0xd8], r12d
inc byte [rdi + 0x1f]
mov ecx, r15d
dec ecx
je 0x14018a4dd
dec ecx
je 0x14018a496
cmp dword [rbp + 0x84], 0
mov r12d, dword [rsi + 0x40]
mov r14d, dword [rsi + 0x3c]
mov dword [rsp + 0x88], r12d
je 0x14018a47c
mov r8d, dword [rbp + 0x88]
mov r9d, 1
mov rcx, rbx
lea edx, [r9 + 0x54]
call fcn.1401594e0
jmp 0x14018a4f3
mov eax, dword [rsi + 0x20]
xor r9d, r9d
mov r8d, r14d
mov rdx, rbp
mov rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.1401893e0
jmp 0x14018a4f3
mov r8d, dword [rbp + 0x84]
mov r12d, dword [rsi + 0x30]
mov r14d, dword [rsi + 0x2c]
mov dword [rsp + 0x88], r12d
mov r9d, 1
test r8d, r8d
je 0x14018a4c6
lea edx, [r9 + 0x54]
mov rcx, rbx
call fcn.1401594e0
jmp 0x14018a4f3
mov eax, dword [rsi + 0x20]
mov r8d, r14d
mov rdx, rbp
mov rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.1401893e0
jmp 0x14018a4f3
mov eax, dword [rsi + 0x38]
mov r14d, dword [rsi + 0x34]
mov rcx, rsi
mov dword [rsp + 0x88], eax
call fcn.14018bbf0
cmp r15d, dword [rsi + 0x24]
jne 0x14018a576
movsxd rcx, dword [rbx + 0x98]
cmp dword [rbx + 0x9c], ecx
jg 0x14018a525
xor r12d, r12d
xor r9d, r9d
mov r8d, r14d
mov edx, 0x81
mov rcx, rbx
mov dword [rsp + 0x20], r12d
call fcn.1400f9b00
jmp 0x14018a554
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
xor edx, edx
mov dword [rbx + 0x98], eax
mov rax, qword [rbx + 0x90]
xor r12d, r12d
mov dword [rax + rcx*8], SQLGetDiagFieldW
mov dword [rax + rcx*8 + 4], r14d
mov qword [rax + rcx*8 + 8], rdx
mov qword [rax + rcx*8 + 0x10], rdx
movsxd rax, dword [rbx + 0x98]
test eax, eax
jle 0x14018a579
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x90]
mov edx, 2
mov word [rax + rcx*8 - 0x16], dx
jmp 0x14018a579
xor r12d, r12d
cmp dword [rsp + 0x98], 0
movsxd rcx, dword [rbx + 0x98]
je 0x14018a5fe
lea edx, [rcx + 2]
cmp dword [rbx + 0x9c], ecx
jg 0x14018a5af
mov r9d, edx
mov r8d, r14d
mov rcx, rbx
mov edx, 5
mov dword [rsp + 0x20], r12d
call fcn.1400f9b00
jmp 0x14018a5e3
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
xor r8d, r8d
mov dword [rbx + 0x98], eax
mov rax, qword [rbx + 0x90]
xor r12d, r12d
mov dword [rax + rcx*8], 5
mov dword [rax + rcx*8 + 4], r14d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
mov edx, reloc.WS2_32.dll_inet_addr
mov rcx, rbx
call fcn.140159400
mov r15d, dword [rsp + 0x80]
mov dword [rsp + 0x34], eax
jmp 0x14018a67d
mov r15d, dword [rsp + 0x80]
lea edx, [r15 + 1]
add edx, ecx
cmp dword [rbx + 0x9c], ecx
jg 0x14018a62e
mov r9d, edx
mov r8d, r14d
mov rcx, rbx
mov edx, 5
mov dword [rsp + 0x20], r12d
call fcn.1400f9b00
jmp 0x14018a662
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
xor r8d, r8d
mov dword [rbx + 0x98], eax
mov rax, qword [rbx + 0x90]
xor r12d, r12d
mov dword [rax + rcx*8], 5
mov dword [rax + rcx*8 + 4], r14d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
test r15d, r15d
je 0x14018a708
xor r8d, r8d
mov r9d, r13d
mov rcx, rbx
lea edx, [r8 + 0xb]
call fcn.1401594e0
test r15d, r15d
je 0x14018a708
mov rax, qword [rbp + 0x18]
test rax, rax
je 0x14018a6a7
mov r15d, dword [rax]
test r15d, r15d
je 0x14018a6aa
mov edx, r15d
mov rcx, rdi
call fcn.14013bb60
mov r12d, eax
jmp 0x14018a6aa
mov r15d, r12d
mov r8d, r12d
mov edx, r14d
mov rcx, rsi
call fcn.14018ba80
mov eax, dword [rsp + 0x38]
mov r9d, dword [rsp + 0x88]
mov rdx, qword [rbp + 0x18]
mov r8d, r12d
mov rcx, rdi
mov dword [rsp + 0x20], eax
call fcn.14018b660
cmp r15d, 1
jne 0x14018a6fa
test r12d, r12d
je 0x14018a708
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x14018a708
movzx eax, al
mov dword [rdi + rax*4 + 0xd8], r12d
inc byte [rdi + 0x1f]
jmp 0x14018a708
cmp r15d, dword [rdi + 0x28]
jle 0x14018a708
mov dword [rdi + 0x28], r15d
mov dword [rdi + 0x2c], r12d
mov edx, dword [rsp + 0x30]
mov r12, qword [rsp + 0x90]
test edx, edx
je 0x14018a76d
movsxd rcx, dword [rbx + 0x98]
cmp dword [rbx + 0x9c], ecx
jg 0x14018a740
xor eax, eax
mov r9d, edx
xor r8d, r8d
lea edx, [rax + 0xb]
mov rcx, rbx
mov dword [rsp + 0x20], eax
call fcn.1400f9b00
jmp 0x14018a76d
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
xor r8d, r8d
mov dword [rbx + 0x98], eax
mov rax, qword [rbx + 0x90]
mov qword [rax + rcx*8], reloc.WS2_32.dll_inet_addr
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
mov rcx, qword [rbx + 0x18]
not r13d
mov eax, dword [rcx + 0x48]
add eax, dword [rcx + 0x44]
jns 0x14018a789
mov r8d, r13d
mov rdx, rbx
call fcn.1401103b0
jmp 0x14018a799
mov rcx, qword [rcx + 0x50]
mov eax, dword [rbx + 0x98]
movsxd rdx, r13d
mov dword [rcx + rdx*4], eax
mov eax, dword [rsp + 0x34]
add rsp, 0x40
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret