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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rdi, qword [rcx + 0x10]
mov rbx, rcx
mov rcx, rdi
mov rbp, r9
mov rsi, r8
mov r14, rdx
mov eax, dword [rdi + 0x3c]
mov dword [rsp + 0x30], eax
call fcn.1401704c0
mov r13d, dword [rsp + 0xa8]
xor r12d, r12d
mov dword [rsp + 0x80], eax
mov r15d, eax
test r13d, r13d
je 0x1401263fa
xor r9d, r9d
mov dword [rsp + 0x20], r12d
mov r8d, r13d
lea edx, [r12 + 0x2e]
mov rcx, rdi
call fcn.140167a30
mov r14, qword [rsp + 0xb0]
mov dword [rsp + 0xa8], eax
test r14, r14
je 0x1401262e5
inc dword [r14]
mov eax, dword [rsi + 0xc]
lea r15d, [r13 + 1]
mov r8d, dword [rsi + 8]
mov r9d, r15d
mov edx, 0x2a
mov dword [rsp + 0x20], eax
mov rcx, rdi
call fcn.140167a30
mov r8, qword [rdi + 8]
mov r12d, eax
mov rcx, qword [rdi]
test r8, r8
je 0x14012635d
cmp byte [rcx + 0x51], 0
jne 0x14012635d
test eax, eax
jns 0x140126322
mov eax, dword [rdi + 0x3c]
dec eax
cdqe
lea rdx, [rax + rax*2]
lea r15, [r8 + rdx*8]
movsx edx, byte [r8 + rdx*8 + 1]
mov r8, qword [r15 + 0x10]
call fcn.1401255e0
test r14, r14
jne 0x14012634e
mov qword [r15 + 0x10], r14
mov byte [r15 + 1], r14b
lea r15d, [r13 + 1]
jmp 0x14012636a
mov qword [r15 + 0x10], r14
mov byte [r15 + 1], 0xfa
lea r15d, [r13 + 1]
jmp 0x14012636a
mov r8, r14
mov edx, 0xfffffffa
call fcn.1401255e0
mov r9d, dword [rsp + 0x80]
lea r8d, [r12 + 2]
mov edx, 0x2b
mov dword [rsp + 0x20], r8d
mov rcx, rdi
call fcn.140167a30
mov eax, dword [rsp + 0xa8]
mov edx, dword [rdi + 0x3c]
cmp edx, eax
jbe 0x1401263a6
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 8]
mov dword [rax + rcx*8 + 8], edx
mov edx, dword [rdi + 0x3c]
mov rax, qword [rdi + 0x30]
lea ecx, [rdx - 1]
mov r9d, r15d
mov edx, 0x1f
mov dword [rax + 0x64], ecx
mov rcx, rdi
mov eax, dword [rsi + 0xc]
mov r8d, dword [rsi + 8]
dec eax
mov dword [rsp + 0x20], eax
call fcn.140167a30
xor r12d, r12d
mov r9d, r13d
mov rcx, rdi
mov dword [rsp + 0x20], r12d
lea edx, [r12 + 0x17]
lea r8d, [r12 + 1]
call fcn.140167a30
mov r14, qword [rsp + 0x88]
mov r15d, dword [rsp + 0x80]
mov rax, qword [rbx]
cmp byte [rax + 0x51], 0
je 0x14012640a
xor eax, eax
jmp 0x14012672b
mov edx, dword [r14 + 0x10]
mov r8d, r15d
mov rcx, rdi
call fcn.14011c130
movzx ecx, byte [rbp]
sub ecx, 0xa
je 0x140126698
sub ecx, 1
je 0x140126593
sub ecx, 1
je 0x1401264d2
cmp ecx, 1
je 0x14012646b
mov r9d, dword [rsi + 0xc]
mov edx, 0x21
mov r8d, dword [rsi + 8]
mov rcx, rdi
mov dword [rsp + 0x20], r12d
call fcn.140167a30
mov r8d, dword [rsi + 0xc]
mov rcx, rbx
mov edx, dword [rsi + 8]
call fcn.140145c80
jmp 0x1401266ad
mov r8d, dword [rbp + 8]
test r8d, r8d
jne 0x1401264a6
mov ecx, dword [rsi + 0xc]
mov edx, dword [rbx + 0x44]
mov r8d, dword [rbx + 0x48]
cmp ecx, edx
jg 0x140126490
lea eax, [r8 + rcx]
sub edx, ecx
mov dword [rbx + 0x48], eax
mov dword [rbx + 0x44], edx
jmp 0x14012649c
mov eax, dword [rbx + 0x54]
lea r8d, [rax + 1]
add eax, ecx
mov dword [rbx + 0x54], eax
mov dword [rbp + 8], r8d
mov eax, dword [rsi + 0xc]
mov dword [rbp + 0xc], eax
mov r9d, dword [rsi + 0xc]
mov rcx, rbx
mov edx, dword [rsi + 8]
call fcn.140146cc0
mov r8d, dword [rbp + 4]
xor r9d, r9d
mov rcx, rdi
mov dword [rsp + 0x20], r12d
lea edx, [r9 + 0x14]
call fcn.140167a30
jmp 0x1401266ad
movzx eax, byte [rbx + 0x1f]
test al, al
jne 0x1401264ea
inc dword [rbx + 0x54]
mov r15d, dword [rbx + 0x54]
inc dword [rbx + 0x54]
mov r14d, dword [rbx + 0x54]
jmp 0x140126511
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov r15d, dword [rbx + rax*4 + 0x24]
test al, al
jne 0x140126504
inc dword [rbx + 0x54]
mov r14d, dword [rbx + 0x54]
jmp 0x140126511
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov r14d, dword [rbx + rax*4 + 0x24]
mov r9d, dword [rsi + 0xc]
mov edx, PathResolve
mov r8d, dword [rsi + 8]
mov rcx, rdi
mov dword [rsp + 0x20], r15d
call fcn.140167a30
mov r8d, dword [rbp + 4]
mov r9d, r14d
mov edx, 0x4b
mov dword [rsp + 0x20], r12d
mov rcx, rdi
call fcn.140167a30
mov r8d, dword [rbp + 4]
mov r9d, r15d
mov edx, 0x54
mov dword [rsp + 0x20], r14d
mov rcx, rdi
call fcn.140167a30
mov rdx, qword [rdi + 8]
test rdx, rdx
je 0x140126573
movsxd rax, dword [rdi + 0x3c]
lea rcx, [rax + rax*2]
mov byte [rdx + rcx*8 - 0x15], 8
mov edx, r14d
mov rcx, rbx
call fcn.14015cda0
mov edx, r15d
call fcn.14015cda0
mov r15d, dword [rsp + 0x80]
jmp 0x1401266ad
mov rax, qword [r14]
lea r15, [rbp + 1]
movzx edx, byte [r15]
mov rcx, qword [rax + 8]
mov rcx, qword [rcx]
call fcn.1401404a0
mov byte [r15], al
movzx eax, byte [rbx + 0x1f]
test al, al
jne 0x1401265be
inc dword [rbx + 0x54]
mov r12d, dword [rbx + 0x54]
jmp 0x1401265cb
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov r12d, dword [rbx + rax*4 + 0x24]
mov r8d, dword [rsi + 8]
mov r9d, 1
mov rcx, rdi
mov dword [rsp + 0x20], r12d
lea edx, [r9 + 0x30]
call fcn.140167a30
mov r8, qword [rdi + 8]
mov rcx, qword [rdi]
test r8, r8
je 0x140126649
cmp byte [rcx + 0x51], 0
jne 0x140126649
test eax, eax
jns 0x140126601
mov eax, dword [rdi + 0x3c]
dec eax
cdqe
lea rdx, [rax + rax*2]
lea r14, [r8 + rdx*8]
movsx edx, byte [r8 + rdx*8 + 1]
mov r8, qword [r14 + 0x10]
call fcn.1401255e0
mov qword [r14 + 0x10], 0
test r15, r15
jne 0x14012662d
mov byte [r14 + 1], r15b
jmp 0x140126656
mov rcx, qword [rdi]
mov r8d, 1
mov rdx, r15
call fcn.140142330
mov qword [r14 + 0x10], rax
mov byte [r14 + 1], 0xff
jmp 0x140126656
mov r8, r15
mov edx, 1
call fcn.1401255e0
mov edx, dword [rsi + 8]
mov r8d, 1
mov rcx, rbx
call fcn.140145c80
mov r8d, dword [rbp + 4]
mov r9d, r12d
mov edx, WSAStartup
mov dword [rsp + 0x20], 0
mov rcx, rdi
call fcn.140167a30
mov edx, r12d
mov rcx, rbx
call fcn.14015cda0
mov r15d, dword [rsp + 0x80]
jmp 0x1401266ad
mov r8d, dword [rbp + 4]
mov r9d, 1
mov edx, dword [rsi + 8]
mov rcx, rbx
call fcn.140146cc0
mov rax, qword [rsp + 0x88]
mov r8d, dword [rax + 0xc]
test r8d, r8d
je 0x1401266db
mov r9d, dword [rsp + 0xb8]
mov edx, 0x8d
mov rcx, rdi
mov dword [rsp + 0x20], 0
call fcn.140167a30
mov r10, qword [rdi + 0x30]
mov ecx, 0xffffffff
sub ecx, r15d
js 0x1401266ff
mov r9, qword [r10 + 0x80]
test r9, r9
je 0x1401266ff
mov edx, dword [rdi + 0x3c]
movsxd r8, ecx
mov dword [r9 + r8*4], edx
mov edx, dword [rdi + 0x3c]
xor r9d, r9d
mov r8d, dword [rsp + 0xa0]
dec edx
mov dword [r10 + 0x64], edx
mov rcx, rdi
mov dword [rsp + 0x20], 0
lea edx, [r9 + 0x10]
call fcn.140167a30
mov eax, dword [rsp + 0x30]
mov rbx, qword [rsp + 0x90]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret