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

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
mov rdi, rsp
mov ecx, 0x18
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x70]
mov dword [rsp + 0x30], 0xffffffff
xor eax, eax
mov word [rsp + 0x34], ax
mov dword [rsp + 0x38], 0
cmp qword [rsp + 0x70], 0
jne 0x140181fc1
mov eax, 0xffffff9a
jmp 0x140182763
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x70], 0
jne 0x140181fe0
mov eax, 0xffffff9a
jmp 0x140182763
mov rax, qword [rsp + 0x20]
mov dword [rax + 0x80], 0
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0xf8], 8
jne 0x1401820c0
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0xfc], 0
jne 0x1401820c0
cmp dword [rsp + 0x38], 0
jne 0x1401820be
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x90], 0
jne 0x140182069
mov rcx, qword [rsp + 0x20]
call fcn.140185040
cmp eax, 0xffffffff
jne 0x140182043
mov dword [rsp + 0x38], 0xffffffff
mov rax, qword [rsp + 0x20]
mov dword [rax + 0x90], 0x10000
mov rax, qword [rsp + 0x20]
add rax, 0x100
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x88], rax
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x94]
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x20]
add rax, 0x78
mov edx, 4
mov rcx, rax
call fcn.1401b3630
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x20]
mov ecx, dword [rsp + 0x3c]
mov eax, dword [rax + 0x94]
sub eax, ecx
mov rcx, qword [rsp + 0x20]
add eax, dword [rcx + 0xd4]
mov rcx, qword [rsp + 0x20]
mov dword [rcx + 0xd4], eax
jmp 0x140182013
jmp 0x1401820d3
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0xf8], 0xc
jne 0x1401820d3
mov rax, qword [rsp + 0x20]
cmp dword [rsp + 0x38], 1
jne 0x1401820e2
mov dword [rsp + 0x38], 0
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0xd4], 0
jbe 0x14018210e
cmp dword [rsp + 0x38], 0
jne 0x14018210e
mov rcx, qword [rsp + 0x20]
call fcn.140185040
cmp eax, 0xffffffff
jne 0x14018210e
mov dword [rsp + 0x38], 0xffffffff
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0xf8], 8
jne 0x14018215d
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0xfc], 0
jne 0x14018215d
mov rax, qword [rsp + 0x20]
add rax, 0x78
mov rcx, rax
call fcn.1401b49e0
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x38], 0
jne 0x14018214e
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x20]
mov dword [rax + 0xd0], 0
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0xfc], 0
jne 0x14018218e
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x10104]
mov dword [rsp + 0x80], eax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x10120]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x10118]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x10140]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov eax, 0xffffffff
cmp qword [rsp + 0x28], rax
jae 0x1401821e6
mov eax, 0xffffffff
cmp qword [rsp + 0x78], rax
jae 0x1401821e6
mov rax, qword [rsp + 0x20]
mov ecx, 0xffffffff
cmp qword [rax + 0xd8], rcx
jb 0x14018222c
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0xe0]
add rax, 4
mov r8d, 2
mov edx, 0x2d
mov rcx, rax
call fcn.140183440
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0xe0]
add rax, 6
mov r8d, 2
mov edx, 0x2d
mov rcx, rax
call fcn.140183440
mov eax, dword [rsp + 0x80]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0xe0]
add rcx, 0x10
mov r8d, 4
mov edx, eax
call fcn.140183440
mov eax, 0xffffffff
cmp qword [rsp + 0x28], rax
jb 0x14018227f
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0xe0]
add rcx, 0x14
mov r8d, 4
mov edx, eax
call fcn.140183440
jmp 0x1401822a2
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0xe0]
add rax, 0x14
mov r8d, 4
mov rdx, qword [rsp + 0x28]
mov rcx, rax
call fcn.140183440
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0xc0], 1
jne 0x1401822d3
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0xe0]
add rax, 0x24
mov r8d, 2
mov edx, 1
mov rcx, rax
call fcn.140183440
mov eax, 0xffffffff
cmp qword [rsp + 0x78], rax
jb 0x140182302
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0xe0]
add rcx, 0x18
mov r8d, 4
mov edx, eax
call fcn.140183440
jmp 0x140182325
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0xe0]
add rax, 0x18
mov r8d, 4
mov rdx, qword [rsp + 0x78]
mov rcx, rax
call fcn.140183440
mov eax, 0xffffffff
cmp qword [rsp + 0x78], rax
jb 0x14018233e
movsx eax, word [rsp + 0x34]
add eax, 8
mov word [rsp + 0x34], ax
mov eax, 0xffffffff
cmp qword [rsp + 0x28], rax
jb 0x140182357
movsx eax, word [rsp + 0x34]
add eax, 8
mov word [rsp + 0x34], ax
mov rax, qword [rsp + 0x20]
mov ecx, 0xffffffff
cmp qword [rax + 0xd8], rcx
jb 0x140182377
movsx eax, word [rsp + 0x34]
add eax, 8
mov word [rsp + 0x34], ax
movsx eax, word [rsp + 0x34]
test eax, eax
jle 0x140182535
mov qword [rsp + 0x48], 0
movsx eax, word [rsp + 0x34]
add eax, 4
mov rcx, qword [rsp + 0x20]
cmp eax, dword [rcx + 0xf0]
jbe 0x1401823ac
mov eax, 0xffffff99
jmp 0x140182763
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0xec]
mov rcx, qword [rsp + 0x20]
add rax, qword [rcx + 0xe0]
mov qword [rsp + 0x48], rax
mov r8d, 2
mov edx, 1
mov rcx, qword [rsp + 0x48]
call fcn.140183440
mov rax, qword [rsp + 0x48]
add rax, 2
mov qword [rsp + 0x48], rax
movsx rax, word [rsp + 0x34]
mov r8d, 2
mov rdx, rax
mov rcx, qword [rsp + 0x48]
call fcn.140183440
mov rax, qword [rsp + 0x48]
add rax, 2
mov qword [rsp + 0x48], rax
mov eax, 0xffffffff
cmp qword [rsp + 0x78], rax
jb 0x140182441
mov r8d, 8
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x48]
call fcn.140183440
mov rax, qword [rsp + 0x48]
add rax, 8
mov qword [rsp + 0x48], rax
mov eax, 0xffffffff
cmp qword [rsp + 0x28], rax
jb 0x140182470
mov r8d, 8
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x48]
call fcn.140183440
mov rax, qword [rsp + 0x48]
add rax, 8
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x20]
mov ecx, 0xffffffff
cmp qword [rax + 0xd8], rcx
jb 0x1401824ad
mov r8d, 8
mov rax, qword [rsp + 0x20]
mov rdx, qword [rax + 0xd8]
mov rcx, qword [rsp + 0x48]
call fcn.140183440
mov rax, qword [rsp + 0x48]
add rax, 8
mov qword [rsp + 0x48], rax
movsx eax, word [rsp + 0x34]
add eax, 4
mov rcx, qword [rsp + 0x20]
mov ecx, dword [rcx + 0xf0]
sub ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x20]
mov dword [rcx + 0xf0], eax
movsx eax, word [rsp + 0x34]
mov rcx, qword [rsp + 0x20]
mov ecx, dword [rcx + 0xec]
lea eax, [rax + rcx + 4]
mov rcx, qword [rsp + 0x20]
mov dword [rcx + 0xec], eax
movsx eax, word [rsp + 0x34]
mov rcx, qword [rsp + 0x20]
mov ecx, dword [rcx + 0xe8]
lea eax, [rax + rcx + 4]
mov rcx, qword [rsp + 0x20]
mov dword [rcx + 0xe8], eax
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0xe8]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0xe0]
add rcx, 0x1e
mov r8d, 2
mov edx, eax
call fcn.140183440
cmp dword [rsp + 0x38], 0
jne 0x140182569
mov rax, qword [rsp + 0x20]
add rax, 0x60
mov rcx, qword [rsp + 0x20]
mov r8d, dword [rcx + 0xec]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rcx + 0xe0]
mov rcx, rax
call fcn.140183160
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0xe0]
call qword [sym.imp.MSVCR120D.dll_free]
cmp dword [rsp + 0x38], 0
jne 0x140182738
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rcx + 0x58]
mov rcx, rax
call fcn.140185a60
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0xd8]
add rax, 0xe
mov rcx, qword [rsp + 0x20]
xor r9d, r9d
mov r8, rax
mov rax, qword [rsp + 0x20]
mov rdx, qword [rax + 0x58]
call fcn.1401859b0
test eax, eax
je 0x1401825d6
mov dword [rsp + 0x38], 0xffffffff
cmp dword [rsp + 0x38], 0
jne 0x140182604
mov eax, dword [rsp + 0x80]
mov rcx, qword [rsp + 0x20]
mov r9d, 4
mov r8d, eax
mov rax, qword [rsp + 0x20]
mov rdx, qword [rax + 0x58]
call fcn.140183330
mov dword [rsp + 0x38], eax
mov eax, 0xffffffff
cmp qword [rsp + 0x78], rax
jb 0x1401826b6
mov rax, qword [rsp + 0x20]
cmp qword [rax + 0x10110], 0
jbe 0x1401826b4
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x10110]
add rax, 4
mov rcx, qword [rsp + 0x20]
xor r9d, r9d
mov r8, rax
mov rax, qword [rsp + 0x20]
mov rdx, qword [rax + 0x58]
call fcn.1401859b0
test eax, eax
je 0x14018265c
mov dword [rsp + 0x38], 0xffffffff
cmp dword [rsp + 0x38], 0
jne 0x140182688
mov rax, qword [rsp + 0x20]
mov r9d, 8
mov r8, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rcx + 0x58]
mov rcx, rax
call fcn.140183330
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jne 0x1401826b4
mov rax, qword [rsp + 0x20]
mov r9d, 8
mov r8, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rcx + 0x58]
mov rcx, rax
call fcn.140183330
mov dword [rsp + 0x38], eax
jmp 0x14018270e
cmp dword [rsp + 0x38], 0
jne 0x1401826e2
mov rax, qword [rsp + 0x20]
mov r9d, 4
mov r8, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rcx + 0x58]
mov rcx, rax
call fcn.140183330
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jne 0x14018270e
mov rax, qword [rsp + 0x20]
mov r9d, 4
mov r8, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rcx + 0x58]
mov rcx, rax
call fcn.140183330
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x20]
xor r9d, r9d
mov r8, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rcx + 0x58]
mov rcx, rax
call fcn.1401859b0
test eax, eax
je 0x140182738
mov dword [rsp + 0x38], 0xffffffff
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x10158]
inc rax
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x10158], rax
mov rax, qword [rsp + 0x20]
mov dword [rax + 0x70], 0
mov eax, dword [rsp + 0x38]
add rsp, 0x60
pop rdi
ret