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

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov dword [rax + 0x10], edx
mov qword [rax + 8], rcx
push rbx
push rbp
push rdi
push r15
sub rsp, 0x78
mov qword [rax - 0x28], rsi
mov rdi, r9
mov qword [rax - 0x38], r13
mov rsi, rcx
mov qword [rax - 0x40], r14
mov r13d, edx
call fcn.14014ebd0
mov rbx, rax
mov eax, dword [rsi + 0x50]
dec eax
mov rcx, rbx
mov dword [rsp + 0x34], eax
call fcn.1401704c0
cmp dword [rsp + 0xd8], 0
mov r14, qword [rsp + 0xc0]
mov dword [rsp + 0x30], eax
jge 0x140123b6c
movzx r8d, byte [r14 + 0x2c]
mov r9d, eax
mov edx, 0x88
mov dword [rsp + 0x20], 0
mov rcx, rbx
call fcn.140167a30
mov r15d, dword [r14 + 0x28]
xor ebp, ebp
mov qword [rsp + 0x68], r12
mov r12d, dword [rsp + 0xd0]
mov dword [rsp + 0x3c], r15d
test r15d, r15d
jle 0x140123c43
mov r14, qword [rsp + 0xc8]
mov rsi, qword [rsp + 0xc0]
mov r13d, dword [rsp + 0x30]
nop dword [rax]
nop word [rax + rax]
movsxd rdi, dword [rbx + 0x3c]
lea r15d, [r12 + 1]
mov rax, qword [rbx + 0x30]
mov ecx, edi
add r15d, dword [r14]
cmp dword [rax + 0x60], edi
jg 0x140123bdb
mov edx, 1
mov rcx, rbx
call fcn.140127a10
test eax, eax
jne 0x140123c0f
mov ecx, dword [rbx + 0x3c]
lea eax, [rcx + 1]
mov dword [rbx + 0x3c], eax
lea rcx, [rdi + rdi*2]
mov rax, qword [rbx + 8]
mov word [rax + rcx*8], 0x4c
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r15d
mov dword [rax + rcx*8 + 8], r13d
mov dword [rax + rcx*8 + 0xc], 0
mov qword [rax + rcx*8 + 0x10], 0
mov r15d, dword [rsi + 0x28]
inc ebp
add r14, 4
mov dword [rsp + 0x3c], r15d
cmp ebp, r15d
jl 0x140123bb0
mov rsi, qword [rsp + 0xa0]
mov r13d, dword [rsp + 0xa8]
mov r14, qword [rsp + 0xc0]
mov rdi, qword [rsp + 0xb8]
cmp dword [rsp + 0xe0], 0
jne 0x140124210
test rdi, rdi
jne 0x140123de8
movzx eax, byte [rsi + 0x1f]
test al, al
jne 0x140123c6a
inc dword [rsi + 0x54]
mov edi, dword [rsi + 0x54]
jmp 0x140123c76
dec al
movzx eax, al
mov byte [rsi + 0x1f], al
mov edi, dword [rsi + rax*4 + 0x24]
mov rax, qword [rsp + 0xc8]
mov r9d, edi
mov edx, 0x20
mov dword [rsp + 0x20], 0
mov rcx, rbx
mov r8d, dword [rax]
inc r8d
add r8d, r12d
call fcn.140167a30
xor r9d, r9d
mov dword [rsp + 0x20], 0
mov r8d, edi
mov rcx, rbx
lea edx, [r9 + 0x26]
call fcn.140167a30
mov r15, qword [rsp + 0xb0]
mov ebp, eax
cmp r15, qword [r14]
jne 0x140123d01
cmp dword [rsp + 0xd8], 1
jne 0x140123d01
mov r9d, dword [rsp + 0x30]
mov r8d, r12d
mov edx, 0x4f
mov dword [rsp + 0x20], edi
mov rcx, rbx
call fcn.140167a30
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x140123d01
movsxd rax, dword [rbx + 0x3c]
lea rcx, [rax + rax*2]
mov byte [rdx + rcx*8 - 0x15], 0x90
mov r9, r15
mov dword [rsp + 0x20], 0x36
mov r15d, dword [rsp + 0x34]
mov r8d, r13d
mov edx, r15d
mov rcx, rsi
call fcn.140153b10
xor r9d, r9d
mov dword [rsp + 0x20], edi
mov r8d, r15d
mov rcx, rbx
lea edx, [r9 + 0x49]
call fcn.140167a30
mov r13d, dword [rsp + 0x30]
xor r8d, r8d
mov r9d, r13d
mov dword [rsp + 0x20], 0
mov rcx, rbx
lea edx, [r8 + 0xe]
call fcn.140167a30
mov edx, dword [rbx + 0x3c]
lea eax, [rdx - 2]
cmp edx, eax
jbe 0x140123d6d
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 edx, dword [rbx + 0x3c]
cmp edx, ebp
jbe 0x140123d94
mov rax, qword [rbx + 8]
lea rcx, [rbp*2]
add rcx, rbp
mov dword [rax + rcx*8 + 8], edx
mov edx, dword [rbx + 0x3c]
mov rax, qword [rbx + 0x30]
lea ecx, [rdx - 1]
xor ebp, ebp
mov dword [rax + 0x64], ecx
test edi, edi
je 0x14012421c
movzx edx, byte [rsi + 0x1f]
cmp dl, 8
jae 0x14012421c
mov ecx, ebp
lea rax, [rsi + 0x88]
nop
cmp dword [rax + 0xc], edi
je 0x140123ddf
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x140123dc0
movzx eax, dl
mov dword [rsi + rax*4 + 0x24], edi
inc byte [rsi + 0x1f]
jmp 0x14012421c
mov byte [rax + 6], 1
jmp 0x14012421c
mov ecx, dword [rsi + 0x44]
mov ebp, dword [rsi + 0x48]
mov dword [rsp + 0xe0], ebp
cmp r15d, ecx
jg 0x140123e09
lea eax, [r15 + rbp]
sub ecx, r15d
mov dword [rsi + 0x48], eax
mov dword [rsi + 0x44], ecx
jmp 0x140123e1c
mov eax, dword [rsi + 0x54]
lea ebp, [rax + 1]
add eax, r15d
mov dword [rsi + 0x54], eax
mov dword [rsp + 0xe0], ebp
movzx eax, byte [rsi + 0x1f]
test al, al
jne 0x140123e2c
inc dword [rsi + 0x54]
mov eax, dword [rsi + 0x54]
jmp 0x140123e38
dec al
movzx eax, al
mov byte [rsi + 0x1f], al
mov eax, dword [rsi + rax*4 + 0x24]
mov r14, qword [rsp + 0xb8]
mov edx, 0x36
mov r8d, dword [rsp + 0x34]
mov rcx, rbx
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x20], r13d
mov r9d, dword [r14 + 0x50]
call fcn.140167a30
mov rdx, r14
mov rcx, rsi
call fcn.140172940
movsxd r13, r15d
test r15d, r15d
jle 0x140123f19
mov rsi, qword [rsp + 0xc8]
xor edi, edi
mov r14d, ebp
nop dword [rax]
nop word [rax + rax]
mov eax, dword [rsi + rdi*4]
movsxd rbp, dword [rbx + 0x3c]
inc eax
add r12d, eax
mov ecx, ebp
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x60], ebp
jg 0x140123ebb
mov edx, 1
mov rcx, rbx
call fcn.140127a10
test eax, eax
jne 0x140123ef6
mov ecx, dword [rbx + 0x3c]
lea eax, [rcx + 1]
mov dword [rbx + 0x3c], eax
lea rcx, [rbp*2]
mov rax, qword [rbx + 8]
add rcx, rbp
mov word [rax + rcx*8], 0x1f
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r12d
mov dword [rax + rcx*8 + 8], r14d
mov dword [rax + rcx*8 + 0xc], 0
mov qword [rax + rcx*8 + 0x10], 0
mov r12d, dword [rsp + 0xd0]
inc r14d
inc rdi
cmp rdi, r13
jl 0x140123e90
mov rsi, qword [rsp + 0xa0]
mov r14, qword [rsp + 0xb8]
mov rax, qword [rsp + 0xc0]
mov rdx, qword [rsp + 0xb0]
cmp rdx, qword [rax]
jne 0x140124073
cmp dword [rsp + 0xd8], 1
jne 0x140124073
mov edi, dword [rbx + 0x3c]
lea eax, [rdi + 1]
add eax, r15d
test r15d, r15d
jle 0x14012401d
mov esi, dword [rsp + 0xd0]
xor edi, edi
mov r15d, eax
nop
mov rax, qword [rsp + 0xc8]
lea r12d, [rsi + 1]
lea ebp, [rsi + 1]
mov eax, dword [rax + rdi*4]
add r12d, eax
mov rax, qword [r14 + 8]
movsxd r14, dword [rbx + 0x3c]
movsx ecx, word [rax + rdi*2]
mov rax, qword [rbx + 0x30]
add ebp, ecx
cmp cx, word [rdx + 0x3c]
mov ecx, r14d
cmove ebp, esi
cmp dword [rax + 0x60], r14d
jg 0x140123fab
mov edx, 1
mov rcx, rbx
call fcn.140127a10
test eax, eax
jne 0x140123fdb
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], 0x4e
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r12d
mov dword [rax + rcx*8 + 8], r15d
mov dword [rax + rcx*8 + 0xc], ebp
mov qword [rax + rcx*8 + 0x10], 0
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x140123ff1
movsxd rax, dword [rbx + 0x3c]
lea rcx, [rax + rax*2]
mov byte [rdx + rcx*8 - 0x15], 0x10
mov r14, qword [rsp + 0xb8]
inc rdi
mov rdx, qword [rsp + 0xb0]
cmp rdi, r13
jl 0x140123f60
mov edi, dword [rbx + 0x3c]
mov rsi, qword [rsp + 0xa0]
mov r15d, dword [rsp + 0x3c]
mov rax, qword [rbx + 0x30]
mov ecx, edi
cmp dword [rax + 0x60], edi
jg 0x14012403c
mov edx, 1
mov rcx, rbx
call fcn.140127a10
test eax, eax
jne 0x140124073
mov ecx, dword [rbx + 0x3c]
mov r13d, dword [rsp + 0x30]
lea eax, [rcx + 1]
mov dword [rbx + 0x3c], eax
xor edx, edx
movsxd rax, edi
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 8]
mov word [rax + rcx*8], SafeArrayGetDim
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r13d
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], rdx
jmp 0x140124078
mov r13d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0xb8]
mov rcx, rbx
call fcn.14014f370
movsxd rdi, dword [rbx + 0x3c]
mov rbp, rax
mov rcx, qword [rbx + 0x30]
mov eax, edi
cmp dword [rcx + 0x60], edi
jg 0x1401240c2
mov edx, 1
mov rcx, rbx
call fcn.140127a10
test eax, eax
je 0x1401240bf
mov r14d, dword [rsp + 0x38]
mov edi, 1
mov r12d, dword [rsp + 0xe0]
jmp 0x1401240ff
mov eax, dword [rbx + 0x3c]
mov r12d, dword [rsp + 0xe0]
lea rcx, [rdi + rdi*2]
mov r14d, dword [rsp + 0x38]
inc eax
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
mov word [rax + rcx*8], PathResolve
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r12d
mov dword [rax + rcx*8 + 8], r15d
mov dword [rax + rcx*8 + 0xc], r14d
mov qword [rax + rcx*8 + 0x10], 0
mov r9d, r15d
mov r8, rbp
mov edx, edi
mov rcx, rbx
call fcn.140167d80
movsxd rdi, dword [rbx + 0x3c]
mov rax, qword [rbx + 0x30]
mov ecx, edi
cmp dword [rax + 0x60], edi
jg 0x14012413b
mov edx, 1
mov rcx, rbx
call fcn.140127a10
test eax, eax
je 0x140124138
mov edi, 1
xor ebp, ebp
jmp 0x14012416d
mov ecx, dword [rbx + 0x3c]
mov edx, dword [rsp + 0x34]
lea eax, [rcx + 1]
mov dword [rbx + 0x3c], eax
lea rcx, [rdi + rdi*2]
mov rax, qword [rbx + 8]
xor ebp, ebp
mov word [rax + rcx*8], 0x46
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r13d
mov dword [rax + rcx*8 + 0xc], r14d
mov qword [rax + rcx*8 + 0x10], rbp
mov r8, qword [rbx + 8]
mov rcx, qword [rbx]
test r8, r8
je 0x1401241ac
cmp byte [rcx + 0x51], 0
jne 0x1401241ac
test edi, edi
jns 0x140124188
mov edi, dword [rbx + 0x3c]
dec edi
movsxd rax, edi
lea rdx, [rax + rax*2]
lea rdi, [r8 + rdx*8]
movsx edx, byte [r8 + rdx*8 + 1]
mov r8, qword [rdi + 0x10]
call fcn.1401255e0
mov qword [rdi + 0x10], rbp
mov byte [rdi + 1], 0xf2
jmp 0x1401241b8
xor r8d, r8d
lea edx, [r8 - 0xe]
call fcn.1401255e0
test r14d, r14d
je 0x1401241f2
movzx edx, byte [rsi + 0x1f]
cmp dl, 8
jae 0x1401241f2
mov ecx, ebp
lea rax, [rsi + 0x88]
nop
cmp dword [rax + 0xc], r14d
je 0x1401241ee
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x1401241d0
movzx eax, dl
mov dword [rsi + rax*4 + 0x24], r14d
inc byte [rsi + 0x1f]
jmp 0x1401241f2
mov byte [rax + 6], 1
mov r8d, r15d
mov edx, r12d
mov rcx, rsi
call fcn.140145c80
cmp r15d, dword [rsi + 0x44]
jle 0x140124217
mov dword [rsi + 0x44], r15d
mov dword [rsi + 0x48], r12d
jmp 0x140124217
mov r13d, dword [rsp + 0x30]
xor ebp, ebp
mov r15d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0xc0]
mov r12, qword [rsp + 0x68]
movzx ecx, byte [rdx + 0x2c]
test cl, cl
jne 0x1401242fb
mov rax, qword [rsi]
test dword [rax + 0x2c], 0x1000000
jne 0x1401242fb
cmp qword [rsi + 0x1c0], 0
jne 0x1401242fb
cmp byte [rsi + 0x20], cl
jne 0x1401242fb
mov rcx, rsi
call fcn.14014ebd0
mov rcx, qword [rsi + 0x1c0]
mov edx, reloc.WSOCK32.dll_shutdown
test rcx, rcx
mov dword [rsp + 0x20], ebp
mov r8d, 0x313
mov r14, rax
cmovne rsi, rcx
mov rcx, rax
lea r9d, [rdx - 0x14]
mov byte [rsi + 0x21], 1
call fcn.140167a30
mov r8, qword [r14 + 8]
mov rcx, qword [r14]
test r8, r8
je 0x1401242d3
cmp byte [rcx + 0x51], 0
jne 0x1401242d3
test eax, eax
jns 0x1401242b0
mov eax, dword [r14 + 0x3c]
dec eax
cdqe
lea rdx, [rax + rax*2]
lea rdi, [r8 + rdx*8]
movsx edx, byte [r8 + rdx*8 + 1]
mov r8, qword [rdi + 0x10]
call fcn.1401255e0
mov qword [rdi + 0x10], rbp
mov byte [rdi + 1], 0
jmp 0x1401242df
xor r8d, r8d
lea edx, [r8 - 2]
call fcn.1401255e0
mov rdx, qword [r14 + 8]
test rdx, rdx
je 0x140124379
movsxd rax, dword [r14 + 0x3c]
lea rcx, [rax + rax*2]
mov byte [rdx + rcx*8 - 0x15], 4
jmp 0x140124379
mov ebp, dword [rsp + 0xd8]
movzx eax, cl
test ebp, ebp
jle 0x140124323
test cl, cl
jne 0x140124323
mov rax, qword [rsi + 0x1c0]
test rax, rax
cmovne rsi, rax
mov byte [rsi + 0x21], 1
movzx eax, byte [rdx + 0x2c]
movsxd rdi, dword [rbx + 0x3c]
movzx esi, al
mov ecx, edi
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x60], edi
jg 0x140124349
mov edx, 1
mov rcx, rbx
call fcn.140127a10
test eax, eax
jne 0x140124377
mov ecx, dword [rbx + 0x3c]
lea eax, [rcx + 1]
mov dword [rbx + 0x3c], eax
lea rcx, [rdi + rdi*2]
mov rax, qword [rbx + 8]
mov dword [rax + rcx*8 + 8], ebp
xor ebp, ebp
mov dword [rax + rcx*8 + 0xc], ebp
mov qword [rax + rcx*8 + 0x10], rbp
mov word [rax + rcx*8], 0x87
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], esi
jmp 0x140124379
xor ebp, ebp
mov r9, qword [rbx + 0x30]
mov eax, 0xffffffff
mov r14, qword [rsp + 0x58]
sub eax, r13d
mov r13, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
js 0x1401243ac
mov r8, qword [r9 + 0x80]
test r8, r8
je 0x1401243ac
movsxd rcx, eax
mov eax, dword [rbx + 0x3c]
mov dword [r8 + rcx*4], eax
mov eax, dword [rbx + 0x3c]
dec eax
mov dword [r9 + 0x64], eax
mov rax, qword [rbx + 0x30]
movsxd rdi, dword [rbx + 0x3c]
cmp dword [rax + 0x60], edi
jg 0x1401243d3
mov edx, 1
mov rcx, rbx
call fcn.140127a10
test eax, eax
jne 0x1401243fc
mov rax, qword [rbx + 8]
lea rcx, [rdi + rdi*2]
inc dword [rbx + 0x3c]
mov word [rax + rcx*8], 0x3d
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r15d
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], rbp
add rsp, 0x78
pop r15
pop rdi
pop rbp
pop rbx
ret