Function at 0x140122f80
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 rsi
push rdi
sub rsp, 0x78
mov rax, qword [0x1401a1460]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x34], 0
cmp qword [rsp + 0x90], 0
jne 0x140122fc6
mov eax, 0xffffff9a
jmp 0x140123489
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x5c], 0
jne 0x140122fe8
mov eax, 0xffffff9a
jmp 0x140123489
mov rax, qword [rsp + 0x20]
cmp qword [rax + 0xc0], 0
je 0x140123004
mov rcx, qword [rsp + 0x90]
call fcn.1401234b0
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x20]
call fcn.140125020
test eax, eax
je 0x14012302b
mov eax, 0xffffff99
jmp 0x140123489
mov ecx, 0xe0
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14012304d
mov eax, 0xffffff98
jmp 0x140123489
mov ecx, 0x4000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, qword [rsp + 0x28]
mov qword [rcx], rax
mov rax, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x40]
mov dword [rax + 0x68], ecx
mov rax, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x44]
mov dword [rax + 0x6c], ecx
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x70], 0
mov rax, qword [rsp + 0x28]
mov ecx, dword [rsp + 0xa8]
mov dword [rax + 0xd8], ecx
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
jne 0x1401230be
cmp qword [rsp + 0x28], 0
je 0x1401230b4
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 0xffffff98
jmp 0x140123489
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x64], 0
cmp qword [rsp + 0x98], 0
je 0x1401230e7
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x20]
mov ecx, dword [rcx + 0x78]
mov dword [rax], ecx
cmp qword [rsp + 0xa0], 0
je 0x140123154
mov rax, qword [rsp + 0xa0]
mov dword [rax], 6
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x74]
and eax, 6
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 2
je 0x140123146
cmp dword [rsp + 0x38], 4
je 0x140123136
cmp dword [rsp + 0x38], 6
je 0x140123126
jmp 0x140123154
mov rax, qword [rsp + 0xa0]
mov dword [rax], 1
jmp 0x140123154
mov rax, qword [rsp + 0xa0]
mov dword [rax], 2
jmp 0x140123154
mov rax, qword [rsp + 0xa0]
mov dword [rax], 9
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x78], 0
je 0x140123172
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x78], 8
je 0x140123172
mov dword [rsp + 0x34], 0xffffff99
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
mov ecx, dword [rcx + 0x80]
mov dword [rax + 0x78], ecx
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x74], 0
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
mov ecx, dword [rcx + 0x78]
mov dword [rax + 0xd0], ecx
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0x40]
mov qword [rax + 0xc8], rcx
mov rax, qword [rsp + 0x28]
lea rdi, [rax + 0x88]
mov rsi, qword [rsp + 0x20]
mov ecx, 0x40
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
mov ecx, dword [rcx + 0x50]
mov dword [rax + 0xd4], ecx
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x24], 0
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x78], 8
jne 0x1401232a5
cmp dword [rsp + 0xa8], 0
jne 0x1401232a5
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x38], 0
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x40], 0
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x48], 0
mov rax, qword [rsp + 0x28]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x10], 0
mov rax, qword [rsp + 0x28]
add rax, 8
mov r9d, 0x58
lea r8, [0x1401a14a8]
mov edx, 0xfffffff1
mov rcx, rax
call fcn.14012c160
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x140123289
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x64], 1
jmp 0x1401232a5
cmp qword [rsp + 0x28], 0
je 0x14012329c
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [rsp + 0x34]
jmp 0x140123489
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
mov ecx, dword [rcx + 0x84]
mov dword [rax + 0x7c], ecx
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
mov ecx, dword [rcx + 0x88]
mov dword [rax + 0x80], ecx
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0xbc]
mov ecx, dword [rsp + 0x48]
lea eax, [rax + rcx + 0x1e]
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 0x60], eax
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x10], 0
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov qword [rax + 0xc0], rcx
cmp qword [rsp + 0xb0], 0
je 0x140123487
call fcn.140120d60
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0xd8], rax
mov rax, qword [rsp + 0x20]
add rax, 0xcc
mov rcx, qword [rsp + 0x20]
mov r8, qword [rcx + 0xd8]
mov rdx, rax
mov rcx, qword [rsp + 0xb0]
call fcn.140124360
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0xc0]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0xc0]
mov eax, dword [rax + 0x60]
add eax, dword [rcx + 0xd4]
xor r9d, r9d
mov r8d, eax
mov rax, qword [rsp + 0x20]
mov rdx, qword [rax + 0x40]
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x38]
mov rax, qword [rsp + 0x20]
call qword [rax + 0x20]
test eax, eax
je 0x14012339c
mov eax, 0xffffff98
jmp 0x140123489
mov r9d, 0xc
lea r8, [rsp + 0x58]
mov rax, qword [rsp + 0x20]
mov rdx, qword [rax + 0x40]
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x38]
mov rax, qword [rsp + 0x20]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp eax, 0xc
jae 0x1401233d0
mov eax, 0xffffff98
jmp 0x140123489
mov dword [rsp + 0x30], 0
jmp 0x1401233e4
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xc
jge 0x140123457
movsxd rax, dword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x20]
add rcx, 0xcc
mov rdx, qword [rsp + 0x20]
mov rdx, qword [rdx + 0xd8]
call fcn.140124240
mov rcx, qword [rsp + 0x50]
movsx ecx, byte [rsp + rcx + 0x58]
xor ecx, eax
mov dword [rsp + 0x3c], ecx
movsxd rax, dword [rsp + 0x30]
movzx ecx, byte [rsp + 0x3c]
mov byte [rsp + rax + 0x58], cl
movsx eax, byte [rsp + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, 0xcc
mov r8d, eax
mov rax, qword [rsp + 0x20]
mov rdx, qword [rax + 0xd8]
call fcn.140124290
jmp 0x1401233da
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0xc0]
mov eax, dword [rax + 0x60]
add eax, 0xc
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0xc0]
mov dword [rcx + 0x60], eax
mov rax, qword [rsp + 0x20]
mov dword [rax + 0xc8], 1
xor eax, eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14011f470
add rsp, 0x78
pop rdi
pop rsi
ret