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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
mov rsi, qword [0x14022c040]
mov rdi, rcx
movsxd rbp, r8d
mov r13, rdx
mov rcx, qword [rsi]
mov qword [rsp + 0x88], rcx
mov rcx, rdi
mov r12, rbp
call fcn.14010ed00
test eax, eax
je 0x1401126ba
test ebp, ebp
jle 0x140112ab4
lea rbx, [rbp*8]
mov r14, r13
movabs rsi, 0x7ffffffffffffffe
lea r15, [r13 + rbx]
mov qword [rsp + 0x40], rbx
mov rbx, r13
mov qword [rsp + 0x50], r15
jmp 0x1401122d5
add rbx, 8
cmp r15, rbx
je 0x140112926
mov rcx, qword [rbx]
call fcn.14010cee0
cmp rsi, rax
jb 0x1401122c8
mov rbx, qword [rsp + 0x40]
mov qword [rsp + 0x40], r14
mov rcx, rbx
call fcn.1400bd0a0
mov r8, rbx
mov rdx, r13
mov rcx, rax
mov qword [rsp + 0x58], rax
mov rsi, rax
call sub.msvcrt.dll_memcpy
cmp rbp, 1
mov r11, qword [rsp + 0x40]
jne 0x140112a7e
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x40], r11
xor esi, esi
mov rcx, qword [rax]
call fcn.14010cee0
mov rcx, rbx
mov r15, rax
call fcn.1400bd0a0
mov r11, qword [rsp + 0x40]
mov qword [rsp + 0x60], r13
mov r9, r13
mov dword [rsp + 0xf0], r12d
mov r14, qword [rsp + 0x50]
mov rbx, rax
mov qword [rsp + 0x48], r11
nop word [rax + rax]
mov rdx, qword [r9]
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + 0x40], r9
call fcn.140116aa0
mov r9, qword [rsp + 0x40]
mov rax, qword [r9]
mov r13, qword [rax + 0x30]
or dword [rax], 0x800000
test r13, r13
je 0x14011242d
mov qword [rsp + 0x40], r9
mov r12, r13
nop word cs:[rax + rax]
mov rdx, qword [r12]
mov rcx, rdi
xor r8d, r8d
call fcn.140116aa0
mov rcx, qword [r12]
mov eax, dword [rcx]
mov edx, eax
shr edx, 4
test eax, 0x400000
jne 0x14011241a
or edx, 0x40000
and eax, 0xf
lea r13, [rsi + 1]
shl edx, 4
or eax, edx
mov dword [rcx], eax
cmp rbp, r13
jae 0x140112413
movabs rax, 0x1fffffffffffffff
lea rbp, [rbp + rbp*2 + 0x30]
shr rbp, 1
cmp rbp, r13
cmovb rbp, r13
cmp rax, rbp
jb 0x140112aa0
mov rcx, rbx
lea rdx, [rbp*8]
call fcn.1400bd2c0
mov rcx, qword [r12]
mov rbx, rax
mov qword [rbx + rsi*8], rcx
mov rsi, r13
mov r12, qword [r12 + 8]
test r12, r12
jne 0x1401123a0
mov r9, qword [rsp + 0x40]
add r9, 8
cmp r9, r14
jne 0x140112360
mov r11, qword [rsp + 0x48]
mov r13, qword [rsp + 0x60]
mov r12d, dword [rsp + 0xf0]
cmp rsi, 1
ja 0x140112953
test rsi, rsi
je 0x140112629
mov rax, qword [rbx]
and dword [rax], 0xffbfffff
lea edx, [rsi - 1]
cmp r12d, 1
je 0x140112629
cmp edx, 0xffffffff
je 0x140112629
mov eax, edx
mov dword [rsp + 0x40], edx
xor ebp, ebp
lea r14d, [r12 - 1]
mov qword [rsp + 0x70], r11
lea r8, [rbx + rax*8]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x78], r13
mov r13, qword [rsp + 0x58]
mov qword [rsp + 0x60], rbx
mov rbx, r8
mov qword [rsp + 0x68], rsi
mov rsi, rax
nop word cs:[rax + rax]
mov rcx, qword [rbx]
mov rdx, rsi
mov qword [rsp + 0x80], 0
call fcn.140116c30
mov rax, qword [rbx]
or dword [rax], 0x400000
mov rax, qword [rsp + 0x80]
test rax, rax
je 0x1401125f2
mov qword [rsp + 0x48], rbx
nop word cs:[rax + rax]
mov rbx, qword [rax]
mov rcx, rdi
xor r8d, r8d
mov rdx, rbx
call fcn.140116aa0
mov eax, dword [rbx]
mov ecx, eax
shr ecx, 4
test eax, 0x800000
je 0x140112566
and ecx, 0xff7ffff
and eax, 0xf
sub r12d, 1
shl ecx, 4
or eax, ecx
mov dword [rbx], eax
cmp r12d, 1
jle 0x140112a02
movsxd rcx, ebp
mov r8, qword [rbx + 4]
mov r9, qword [rbx + 0xc]
lea rax, [rcx*8]
mov rcx, qword [r13 + rcx*8]
xor r8, qword [rcx + 4]
xor r9, qword [rcx + 0xc]
or r8, r9
je 0x1401129b0
mov rcx, rbx
call fcn.14010cee0
cmp rax, r15
jb 0x1401129a0
mov rax, qword [rbx + 0x30]
test rax, rax
jne 0x1401125ad
jmp 0x1401129a0
mov rax, qword [rax + 8]
test rax, rax
je 0x1401129a0
mov rcx, qword [rax]
mov edx, dword [rcx]
mov r8d, edx
shr r8d, 4
test edx, 0x400000
jne 0x1401125a0
or r8d, 0x40000
and edx, 0xf
shl r8d, 4
or edx, r8d
mov dword [rcx], edx
mov rdx, rsi
call fcn.140116c30
mov rax, qword [rsp + 0x80]
test rax, rax
jne 0x140112500
mov rbx, qword [rsp + 0x48]
xor ecx, ecx
sub rbx, 8
call fcn.140116d80
sub dword [rsp + 0x40], 1
mov eax, dword [rsp + 0x40]
cmp eax, 0xffffffff
je 0x140112615
cmp r12d, 1
jg 0x1401124c0
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov r11, qword [rsp + 0x70]
mov r13, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x40], r11
call fcn.1400eaf30
mov rcx, qword [rsp + 0x50]
mov r11, qword [rsp + 0x40]
mov rax, r13
nop word cs:[rax + rax]
nop word cs:[rax + rax]
nop dword [rax + rax]
mov rdx, qword [rax]
add rax, 8
and dword [rdx], 0xff7fffff
cmp rcx, rax
jne 0x140112660
mov rdx, qword [rsp + 0x50]
xor edi, edi
nop dword [rax]
mov rax, qword [r11]
test byte [rax + 2], 0x40
jne 0x140112694
movsxd rcx, edi
add edi, 1
mov qword [r13 + rcx*8], rax
add r11, 8
cmp rdx, r11
jne 0x140112680
mov ecx, esi
mov r8d, 0x40000
mov rdx, rbx
call fcn.140116f40
mov rcx, rbx
call fcn.1400eaf30
jmp 0x1401128f8
mov edx, 8
mov rcx, rbp
call fcn.1400bd320
mov edx, 1
mov rcx, rbp
mov rsi, rax
call fcn.1400bd320
lea r8d, [rbp - 1]
movsxd r8, r8d
mov rbx, rax
mov rax, r8
shr rax, 0x3e
jne 0x140112ad5
lea rcx, [r8*4]
xor r14d, r14d
call fcn.1400bd0a0
mov qword [rsp + 0x58], rax
nop word cs:[rax + rax]
nop
mov rdx, qword [r13 + r14*8]
xor r8d, r8d
mov rcx, rdi
add r14, 1
call fcn.140116aa0
cmp r12d, r14d
jg 0x140112710
xor r15d, r15d
lea rax, [rsp + 0x80]
mov qword [rsp + 0x60], rbp
mov rbp, rsi
mov qword [rsp + 0x50], rdi
mov rsi, r15
mov rdi, qword [rsp + 0x58]
mov qword [rsp + 0x48], rax
jmp 0x14011275d
add rsi, 1
cmp r12d, esi
jle 0x14011289a
mov rcx, qword [r13 + rsi*8]
mov qword [rsp + 0x80], 0
call fcn.14010cee0
cmp byte [rbx + rsi], 0
mov rdx, rax
jne 0x140112750
xor r14d, r14d
xor r15d, r15d
nop word cs:[rax + rax]
nop dword [rax]
cmp esi, r14d
je 0x1401127c7
cmp byte [rbx + r14], 0
jne 0x1401127c7
mov rcx, qword [r13 + r14*8]
movsxd rax, r15d
mov qword [rsp + 0x40], rdx
add r15d, 1
mov dword [rdi + rax*4], r14d
mov qword [rbp + rax*8], rcx
call fcn.14010cee0
mov rdx, qword [rsp + 0x40]
cmp rdx, rax
cmova rdx, rax
add r14, 1
cmp r12d, r14d
jg 0x140112790
mov rcx, qword [rsp + 0x48]
mov rax, qword [r13 + rsi*8]
mov r9, rbp
mov r8d, r15d
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x30], rcx
mov rcx, qword [rsp + 0x50]
mov rdx, rax
mov dword [rsp + 0x28], 0
call fcn.140111f50
mov rcx, qword [r13 + rsi*8]
test eax, eax
jne 0x140112a32
mov eax, dword [rcx]
test eax, 0x200000
je 0x140112819
mov byte [rbx + rsi], 1
movsxd rcx, r15d
xor eax, eax
test r15d, r15d
je 0x140112860
nop word cs:[rax + rax]
nop word cs:[rax + rax]
nop dword [rax]
mov rdx, qword [rbp + rax*8]
mov edx, dword [rdx]
and edx, 0x100000
je 0x140112857
movsxd rdx, dword [rdi + rax*4]
mov byte [rbx + rdx], 1
add rax, 1
cmp rax, rcx
jne 0x140112840
mov rcx, qword [r13 + rsi*8]
mov edx, 0xf0000
add rsi, 1
call fcn.140117000
mov r8d, 0xf0000
mov rdx, rbp
mov ecx, r15d
call fcn.140116f40
mov rcx, qword [rsp + 0x80]
call fcn.140116d80
cmp r12d, esi
jg 0x14011275d
mov rsi, rbp
mov rbp, qword [rsp + 0x60]
mov rdx, r13
xor edi, edi
mov rcx, rsi
lea r8, [rbp*8]
call sub.msvcrt.dll_memcpy
xor eax, eax
nop dword [rax]
cmp byte [rbx + rax], 0
jne 0x1401128d5
mov rcx, qword [rsi + rax*8]
movsxd rdx, edi
add edi, 1
mov qword [r13 + rdx*8], rcx
add rax, 1
cmp r12d, eax
jg 0x1401128c0
mov rcx, rsi
call fcn.1400eaf30
mov rcx, rbx
call fcn.1400eaf30
mov rcx, qword [rsp + 0x58]
call fcn.1400eaf30
mov rsi, qword [0x14022c040]
mov rax, qword [rsp + 0x88]
sub rax, qword [rsi]
jne 0x140112ae6
mov eax, edi
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov edx, 8
mov rcx, rbp
call fcn.1400bd320
mov edx, 1
mov rcx, rbp
mov rsi, rax
call fcn.1400bd320
lea r8d, [r12 - 1]
mov rbx, rax
movsxd r8, r8d
jmp 0x1401126ee
lea r9, [0x140111ca0]
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x40], r11
call fcn.14008e030
mov r11, qword [rsp + 0x40]
xor eax, eax
nop word [rax + rax]
mov rdx, qword [rbx + rax*8]
add rax, 1
and dword [rdx], 0xffbfffff
cmp rax, rsi
jb 0x140112980
jmp 0x140112468
mov rcx, rsi
call fcn.140117080
jmp 0x1401125dc
mov r8, qword [rbx + 0x14]
mov r9, qword [rbx + 0x1c]
xor r8, qword [rcx + 0x14]
xor r9, qword [rcx + 0x1c]
or r8, r9
jne 0x140112566
cmp r14d, ebp
jle 0x1401129f5
add rax, r13
jmp 0x1401129ef
add ebp, 1
add rax, 8
mov rcx, qword [rax]
cmp ebp, r14d
je 0x1401129f5
test byte [rcx + 2], 0x40
jne 0x1401129e0
call fcn.14010cee0
mov r15, rax
jmp 0x140112566
mov r11, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov qword [rsp + 0x40], r11
mov r13, qword [rsp + 0x78]
call fcn.140116d80
mov r11, qword [rsp + 0x40]
jmp 0x140112629
mov edx, 0xf0000
mov edi, 0xffffffff
call fcn.140117000
mov r8d, 0xf0000
mov rdx, rbp
mov ecx, r15d
call fcn.140116f40
mov rcx, qword [rsp + 0x80]
call fcn.140116d80
mov rcx, rbp
call fcn.1400eaf30
mov rcx, rbx
call fcn.1400eaf30
mov rcx, qword [rsp + 0x58]
call fcn.1400eaf30
jmp 0x1401128f8
lea r9, [0x140111ca0]
mov r8d, 8
mov rdx, rbp
mov rcx, rsi
call fcn.14008e030
mov r11, qword [rsp + 0x40]
jmp 0x140112319
mov r8, rbp
mov edx, 8
lea rcx, [0x14020dbc8]
call fcn.1400b6950
mov edx, 8
mov rcx, rbp
call fcn.1400bd320
mov edx, 1
mov rcx, rbp
call fcn.1400bd320
lea r8d, [rbp - 1]
movsxd r8, r8d
mov edx, 4
lea rcx, [0x14020dbc8]
call fcn.1400b6950
call fcn.1401d96b0
nop
nop dword [rax]