Function at 0x1401edf80
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 0x1401edfe4
cmp byte [rbp + 0x21], 0x5a
jne 0x1401edfe4
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 0x1401ee070
cmp byte [rbp + 0x20], 0x59
jne 0x1401ee058
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 0x1401ee041
cmp byte [rbp + 0x21], 0x56
jne 0x1401ee02a
mov eax, dword [rsi + 0x2c]
mov r8d, dword [rsi + 0x34]
mov edx, gethostname
mov dword [rsp + 0x20], eax
call fcn.1401ee510
jmp 0x1401ee089
mov eax, dword [rsi + 0x34]
mov r8d, dword [rsi + 0x2c]
mov edx, reloc.WS2_32.dll_gethostname
mov dword [rsp + 0x20], eax
call fcn.1401ee510
jmp 0x1401ee089
mov eax, dword [rsi + 0x34]
mov r8d, dword [rsi + 0x3c]
mov edx, gethostname
mov dword [rsp + 0x20], eax
call fcn.1401ee510
jmp 0x1401ee070
mov r9d, r13d
mov edx, gethostbyaddr
mov rcx, rbx
mov dword [rsp + 0x20], 1
call fcn.1401bd2b0
cmp r15d, 1
jne 0x1401ee089
cmp dword [rbp + 0x84], 0
jne 0x1401ee089
xor edx, edx
mov rcx, rsi
call fcn.1401ecd50
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 0x1401ee199
test r14d, r14d
je 0x1401ee199
cmp byte [rbp + 0x20], 0x59
jne 0x1401ee199
movzx eax, byte [rdi + 0x1f]
test al, al
jne 0x1401ee0cc
inc dword [rdi + 0x38]
mov r14d, dword [rdi + 0x38]
jmp 0x1401ee0dc
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 0x1401ee0ed
inc dword [rdi + 0x38]
mov r12d, dword [rdi + 0x38]
jmp 0x1401ee0fd
dec al
movzx eax, al
mov byte [rdi + 0x1f], al
mov r12d, dword [rdi + rax*4 + 0xd8]
cmp r15d, 2
jne 0x1401ee130
mov r8d, dword [rsi + 0x2c]
mov r9d, r14d
mov edx, SQLGetDiagFieldW
mov rcx, rbx
call fcn.1401bd240
mov r8d, dword [rsi + 0x3c]
mov r9d, r12d
mov edx, SQLGetDiagFieldW
mov rcx, rbx
call fcn.1401bd240
mov r8d, r12d
jmp 0x1401ee14e
cmp dword [rsi + 0x28], 0
je 0x1401ee163
mov r8d, dword [rsi + 0x3c]
mov r9d, r14d
mov edx, SQLGetDiagFieldW
mov rcx, rbx
call fcn.1401bd240
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.1401bd2b0
test r14d, r14d
je 0x1401ee17e
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x1401ee17e
movzx eax, al
mov dword [rdi + rax*4 + 0xd8], r14d
inc byte [rdi + 0x1f]
test r12d, r12d
je 0x1401ee199
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x1401ee199
movzx eax, al
mov dword [rdi + rax*4 + 0xd8], r12d
inc byte [rdi + 0x1f]
mov ecx, r15d
dec ecx
je 0x1401ee23d
dec ecx
je 0x1401ee1f6
cmp dword [rbp + 0x84], 0
mov r12d, dword [rsi + 0x40]
mov r14d, dword [rsi + 0x3c]
mov dword [rsp + 0x88], r12d
je 0x1401ee1dc
mov r8d, dword [rbp + 0x88]
mov r9d, 1
mov rcx, rbx
lea edx, [r9 + 0x54]
call fcn.1401bd240
jmp 0x1401ee253
mov eax, dword [rsi + 0x20]
xor r9d, r9d
mov r8d, r14d
mov rdx, rbp
mov rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.1401ed140
jmp 0x1401ee253
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 0x1401ee226
lea edx, [r9 + 0x54]
mov rcx, rbx
call fcn.1401bd240
jmp 0x1401ee253
mov eax, dword [rsi + 0x20]
mov r8d, r14d
mov rdx, rbp
mov rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.1401ed140
jmp 0x1401ee253
mov eax, dword [rsi + 0x38]
mov r14d, dword [rsi + 0x34]
mov rcx, rsi
mov dword [rsp + 0x88], eax
call fcn.1401ef950
cmp r15d, dword [rsi + 0x24]
jne 0x1401ee2d6
movsxd rcx, dword [rbx + 0x98]
cmp dword [rbx + 0x9c], ecx
jg 0x1401ee285
xor r12d, r12d
xor r9d, r9d
mov r8d, r14d
mov edx, 0x81
mov rcx, rbx
mov dword [rsp + 0x20], r12d
call fcn.14015d860
jmp 0x1401ee2b4
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 0x1401ee2d9
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x90]
mov edx, 2
mov word [rax + rcx*8 - 0x16], dx
jmp 0x1401ee2d9
xor r12d, r12d
cmp dword [rsp + 0x98], 0
movsxd rcx, dword [rbx + 0x98]
je 0x1401ee35e
lea edx, [rcx + 2]
cmp dword [rbx + 0x9c], ecx
jg 0x1401ee30f
mov r9d, edx
mov r8d, r14d
mov rcx, rbx
mov edx, 5
mov dword [rsp + 0x20], r12d
call fcn.14015d860
jmp 0x1401ee343
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.1401bd160
mov r15d, dword [rsp + 0x80]
mov dword [rsp + 0x34], eax
jmp 0x1401ee3dd
mov r15d, dword [rsp + 0x80]
lea edx, [r15 + 1]
add edx, ecx
cmp dword [rbx + 0x9c], ecx
jg 0x1401ee38e
mov r9d, edx
mov r8d, r14d
mov rcx, rbx
mov edx, 5
mov dword [rsp + 0x20], r12d
call fcn.14015d860
jmp 0x1401ee3c2
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 0x1401ee468
xor r8d, r8d
mov r9d, r13d
mov rcx, rbx
lea edx, [r8 + 0xb]
call fcn.1401bd240
test r15d, r15d
je 0x1401ee468
mov rax, qword [rbp + 0x18]
test rax, rax
je 0x1401ee407
mov r15d, dword [rax]
test r15d, r15d
je 0x1401ee40a
mov edx, r15d
mov rcx, rdi
call fcn.14019f8c0
mov r12d, eax
jmp 0x1401ee40a
mov r15d, r12d
mov r8d, r12d
mov edx, r14d
mov rcx, rsi
call fcn.1401ef7e0
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.1401ef3c0
cmp r15d, 1
jne 0x1401ee45a
test r12d, r12d
je 0x1401ee468
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x1401ee468
movzx eax, al
mov dword [rdi + rax*4 + 0xd8], r12d
inc byte [rdi + 0x1f]
jmp 0x1401ee468
cmp r15d, dword [rdi + 0x28]
jle 0x1401ee468
mov dword [rdi + 0x28], r15d
mov dword [rdi + 0x2c], r12d
mov edx, dword [rsp + 0x30]
mov r12, qword [rsp + 0x90]
test edx, edx
je 0x1401ee4cd
movsxd rcx, dword [rbx + 0x98]
cmp dword [rbx + 0x9c], ecx
jg 0x1401ee4a0
xor eax, eax
mov r9d, edx
xor r8d, r8d
lea edx, [rax + 0xb]
mov rcx, rbx
mov dword [rsp + 0x20], eax
call fcn.14015d860
jmp 0x1401ee4cd
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 0x1401ee4e9
mov r8d, r13d
mov rdx, rbx
call fcn.140174110
jmp 0x1401ee4f9
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