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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov rbx, qword [rcx + 0x10]
mov rdi, rcx
mov rcx, rbx
mov r12d, r9d
mov r15, r8
mov r13, rdx
call fcn.1401704c0
mov rcx, rbx
mov dword [rsp + 0x34], eax
call fcn.1401704c0
mov r9d, dword [r15 + 0x14]
xor r14d, r14d
mov rsi, qword [r15]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0xd0]
movzx ebp, byte [rax]
mov ecx, dword [rax + 4]
mov dword [rsp + 0x50], ebp
mov dword [rsp + 0x3c], ecx
test r9d, r9d
je 0x140126823
mov r8d, dword [r15 + 0x10]
lea edx, [r14 + 0xf]
mov rcx, rbx
mov dword [rsp + 0x20], r14d
call fcn.140167a30
mov r9d, dword [rsp + 0x34]
lea edx, [r14 + 0xe]
xor r8d, r8d
mov dword [rsp + 0x20], r14d
mov rcx, rbx
call fcn.140167a30
mov eax, dword [r15 + 0x14]
mov r8, qword [rbx + 0x30]
not eax
test eax, eax
js 0x140126812
mov rdx, qword [r8 + 0x80]
test rdx, rdx
je 0x140126812
movsxd rcx, eax
mov eax, dword [rbx + 0x3c]
mov dword [rdx + rcx*4], eax
mov eax, dword [rbx + 0x3c]
dec eax
mov dword [r8 + 0x64], eax
mov rax, qword [rsp + 0xd0]
mov edx, dword [r15 + 0xc]
mov dword [rsp + 0x30], edx
cmp ebp, 9
je 0x140126890
cmp bpl, 0xd
je 0x140126890
movzx eax, byte [rdi + 0x1f]
test al, al
jne 0x140126858
inc dword [rdi + 0x54]
mov r12d, 1
mov r15d, dword [rdi + 0x54]
inc dword [rdi + 0x54]
mov ebp, dword [rdi + 0x54]
mov dword [rsp + 0x38], r15d
jmp 0x14012689b
dec al
movzx eax, al
mov byte [rdi + 0x1f], al
mov r15d, dword [rdi + rax*4 + 0x24]
mov dword [rsp + 0x38], r15d
test al, al
jne 0x14012687c
inc dword [rdi + 0x54]
mov r12d, 1
mov ebp, dword [rdi + 0x54]
jmp 0x14012689b
dec al
mov r12d, 1
movzx eax, al
mov byte [rdi + 0x1f], al
mov ebp, dword [rdi + rax*4 + 0x24]
jmp 0x14012689b
mov ebp, dword [rax + 8]
xor r15d, r15d
mov dword [rsp + 0x38], r15d
mov rcx, qword [rsp + 0xc0]
mov eax, dword [rsi]
sub eax, dword [rcx + 8]
test byte [rcx + 0x1c], 1
mov dword [rsp + 0x44], eax
je 0x1401269a4
mov r13d, dword [rdi + 0x50]
inc dword [rdi + 0x54]
mov esi, dword [rdi + 0x54]
lea eax, [r13 + 1]
mov dword [rdi + 0x50], eax
cmp dword [rcx + 0x14], r14d
je 0x1401268f7
mov rcx, rdi
call fcn.14014ebd0
mov r8d, dword [rdi + 0x5c]
xor r9d, r9d
mov dword [rsp + 0x20], r14d
lea ecx, [r8 + 1]
mov dword [rdi + 0x5c], ecx
lea edx, [r9 + 0x2c]
mov rcx, rax
call fcn.140167a30
mov r14d, eax
mov ecx, dword [rsp + 0x44]
mov r9d, esi
inc ecx
mov r8d, r13d
add ecx, r12d
mov edx, 0x3c
mov dword [rsp + 0x20], ecx
mov rcx, rbx
call fcn.140167a30
test r14d, r14d
je 0x140126940
mov edx, dword [rbx + 0x3c]
cmp edx, r14d
jbe 0x140126936
mov eax, r14d
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 8]
mov dword [rax + rcx*8 + 8], edx
mov edx, dword [rbx + 0x3c]
mov rax, qword [rbx + 0x30]
lea ecx, [rdx - 1]
mov dword [rax + 0x64], ecx
mov r9d, dword [rsp + 0x34]
mov edx, 0x6b
mov r8d, dword [rsp + 0x30]
mov rcx, rbx
mov dword [rsp + 0x20], 0
call fcn.140167a30
mov r8d, dword [rsp + 0x40]
mov rcx, rbx
lea r14d, [rax + 1]
mov rax, qword [rsp + 0xb8]
mov dword [rsp + 0x4c], r14d
mov edx, dword [rax + 0x10]
call fcn.14011c130
mov r8d, dword [rsp + 0x30]
mov r9d, esi
mov edx, 0x65
mov dword [rsp + 0x20], r13d
mov rcx, rbx
call fcn.140167a30
mov dword [rsp + 0x48], 0
jmp 0x1401269e2
mov r9d, dword [rsp + 0x34]
mov r8d, edx
mov edx, 0x6c
mov dword [rsp + 0x20], r14d
mov rcx, rbx
call fcn.140167a30
mov r8d, dword [rsp + 0x40]
inc eax
mov edx, dword [r13 + 0x10]
mov rcx, rbx
mov dword [rsp + 0x4c], eax
call fcn.14011c130
mov r13d, dword [rsp + 0x30]
mov dword [rsp + 0x48], 1
xor esi, esi
test r12d, r12d
jle 0x140126a72
mov edi, dword [rsp + 0x44]
mov r15d, dword [rsp + 0x48]
nop word [rax + rax]
movsxd r14, dword [rbx + 0x3c]
mov rax, qword [rbx + 0x30]
mov ecx, r14d
cmp dword [rax + 0x60], r14d
jg 0x140126a25
mov edx, 1
mov rcx, rbx
call fcn.140127a10
test eax, eax
jne 0x140126a5e
mov ecx, dword [rbx + 0x3c]
lea eax, [rcx + 1]
mov dword [rbx + 0x3c], eax
lea rcx, [r14 + r14*2]
mov rax, qword [rbx + 8]
mov word [rax + rcx*8], PathResolve
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r13d
lea rdx, [rax + rcx*8]
lea eax, [rsi + r15]
mov qword [rdx + 0x10], 0
add eax, edi
mov dword [rdx + 8], eax
lea eax, [rsi + rbp]
mov dword [rdx + 0xc], eax
inc esi
cmp esi, r12d
jl 0x140126a00
mov rdi, qword [rsp + 0xb0]
mov r15d, dword [rsp + 0x38]
mov edx, dword [rsp + 0x50]
mov ecx, edx
sub ecx, 0xa
je 0x140126bf1
sub ecx, 1
je 0x140126b2e
cmp ecx, 1
mov dword [rsp + 0x20], 0
mov rcx, rbx
je 0x140126ae3
mov r14, qword [rsp + 0xd0]
cmp dl, 9
jne 0x140126ace
mov r9d, dword [rsp + 0xc8]
mov edx, 0x21
mov r8d, dword [r14 + 8]
call fcn.140167a30
mov r8d, dword [rsp + 0xc8]
mov edx, dword [r14 + 8]
jmp 0x140126c17
mov r8d, dword [r14 + 4]
xor r9d, r9d
lea edx, [r9 + 0x14]
call fcn.140167a30
jmp 0x140126c1f
mov r8d, dword [rsp + 0x3c]
mov r9d, r15d
mov edx, 0x4b
call fcn.140167a30
mov r8d, dword [rsp + 0x3c]
mov r9d, ebp
mov edx, 0x54
mov dword [rsp + 0x20], r15d
mov rcx, rbx
call fcn.140167a30
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x140126c1f
movsxd rax, dword [rbx + 0x3c]
lea rcx, [rax + rax*2]
mov byte [rdx + rcx*8 - 0x15], 8
jmp 0x140126c1f
mov r14, qword [rsp + 0xd0]
mov r9d, 1
mov r8d, ebp
mov dword [rsp + 0x20], r15d
mov rcx, rbx
inc r14
lea edx, [r9 + 0x30]
call fcn.140167a30
mov r8, qword [rbx + 8]
mov rcx, qword [rbx]
test r8, r8
je 0x140126bb5
cmp byte [rcx + 0x51], 0
jne 0x140126bb5
test eax, eax
jns 0x140126b6e
mov eax, dword [rbx + 0x3c]
dec eax
cdqe
lea rdx, [rax + rax*2]
lea rsi, [r8 + rdx*8]
movsx edx, byte [r8 + rdx*8 + 1]
mov r8, qword [rsi + 0x10]
call fcn.1401255e0
mov qword [rsi + 0x10], 0
test r14, r14
jne 0x140126b9a
mov byte [rsi + 1], r14b
jmp 0x140126bc2
mov rcx, qword [rbx]
mov r8d, 1
mov rdx, r14
call fcn.140142330
mov qword [rsi + 0x10], rax
mov byte [rsi + 1], 0xff
jmp 0x140126bc2
mov r8, r14
mov edx, 1
call fcn.1401255e0
mov r8d, 1
mov edx, ebp
mov rcx, rdi
call fcn.140145c80
mov r8d, dword [rsp + 0x3c]
mov r9d, r15d
mov edx, WSAStartup
mov dword [rsp + 0x20], 0
mov rcx, rbx
call fcn.140167a30
jmp 0x140126c1f
mov r9d, dword [rsp + 0x3c]
mov r8d, ebp
mov rcx, qword [rdi + 0x10]
mov edx, 0x1e
mov dword [rsp + 0x20], 1
call fcn.140167a30
mov r8d, 1
mov edx, ebp
mov rcx, rdi
call fcn.140145c80
test r15d, r15d
je 0x140126c94
test ebp, ebp
je 0x140126c60
movzx edx, byte [rdi + 0x1f]
cmp dl, 8
jae 0x140126c60
xor ecx, ecx
lea rax, [rdi + 0x88]
nop word [rax + rax]
cmp dword [rax + 0xc], ebp
je 0x140126c5c
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x140126c40
movzx eax, dl
mov dword [rdi + rax*4 + 0x24], ebp
inc byte [rdi + 0x1f]
jmp 0x140126c60
mov byte [rax + 6], 1
movzx edx, byte [rdi + 0x1f]
cmp dl, 8
jae 0x140126c94
xor ecx, ecx
lea rax, [rdi + 0x88]
cmp dword [rax + 0xc], r15d
je 0x140126c90
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x140126c72
movzx eax, dl
mov dword [rdi + rax*4 + 0x24], r15d
inc byte [rdi + 0x1f]
jmp 0x140126c94
mov byte [rax + 6], 1
mov r8, qword [rbx + 0x30]
mov edi, 0xffffffff
mov eax, edi
sub eax, dword [rsp + 0x40]
js 0x140126cba
mov rdx, qword [r8 + 0x80]
test rdx, rdx
je 0x140126cba
movsxd rcx, eax
mov eax, dword [rbx + 0x3c]
mov dword [rdx + rcx*4], eax
mov eax, dword [rbx + 0x3c]
mov rcx, rbx
mov rsi, qword [rsp + 0xc0]
dec eax
mov r9d, dword [rsp + 0x4c]
mov dword [r8 + 0x64], eax
mov r8d, dword [rsp + 0x30]
movzx edx, byte [rsi + 0x1c]
not dl
mov dword [rsp + 0x20], 0
and edx, 1
lea edx, [rdx*4 + 4]
call fcn.140167a30
mov ebp, dword [rsi + 0x10]
test ebp, ebp
je 0x140126d4e
movsxd rsi, dword [rbx + 0x3c]
mov rax, qword [rbx + 0x30]
mov ecx, esi
cmp dword [rax + 0x60], esi
jg 0x140126d1f
mov edx, 1
mov rcx, rbx
call fcn.140127a10
test eax, eax
jne 0x140126d4e
mov ecx, dword [rbx + 0x3c]
lea eax, [rcx + 1]
mov dword [rbx + 0x3c], eax
lea rcx, [rsi + rsi*2]
mov rax, qword [rbx + 8]
mov word [rax + rcx*8], reloc.OLEAUT32.dll_SafeArrayGetDim
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], ebp
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], 0
sub edi, dword [rsp + 0x34]
mov r8, qword [rbx + 0x30]
js 0x140126d6d
mov rdx, qword [r8 + 0x80]
test rdx, rdx
je 0x140126d6d
mov eax, dword [rbx + 0x3c]
movsxd rcx, edi
mov dword [rdx + rcx*4], eax
mov eax, dword [rbx + 0x3c]
dec eax
mov dword [r8 + 0x64], eax
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret