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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0xc8
mov rax, qword [0x140191810]
xor rax, rsp
mov qword [rbp - 1], rax
xor r14d, r14d
mov qword [rbp - 0x71], rdx
mov r12, r8
mov rdi, rcx
xor edx, edx
lea rcx, [rbp - 0x41]
mov r13, r9
mov ebx, r14d
lea r8d, [r14 + 0x3c]
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov word [rbp - 0x69], r14w
mov ecx, 0x4f8
mov qword [rbp - 0x67], rax
mov word [rbp - 0x5f], ax
mov r15d, r14d
mov qword [rdi + 0x10], r14
call fcn.140021ddc
mov rsi, rax
test rax, rax
je 0x140127636
xor edx, edx
mov r8d, 0x4f8
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
jmp 0x140127639
mov rsi, r14
test rsi, rsi
jne 0x140127648
mov ebx, reloc.Cabinet.dll_FCIDestroy
jmp 0x1401279fb
mov dword [rsi], 0x4f8
mov rcx, qword [rdi]
test rcx, rcx
je 0x1401279f2
or rdx, 0xffffffffffffffff
mov rax, rdx
inc rax
cmp word [rcx + rax*2], r14w
jne 0x140127661
cmp rax, 0x19
jne 0x1401279f2
mov r8, qword [rdi + 8]
test r8, r8
je 0x1401279f2
mov rax, rdx
inc rax
cmp word [r8 + rax*2], r14w
jne 0x140127685
mov r11d, 5
cmp rax, r11
jb 0x1401279f2
mov rdx, r14
mov r10d, r11d
mov r9, r11
movzx eax, word [rcx]
add rcx, 2
mov word [rbp + rdx*2 - 0x41], ax
inc rdx
sub r9, 1
jne 0x1401276a7
lea eax, [r9 + 0x2d]
mov word [rbp + rdx*2 - 0x41], ax
inc rdx
sub r10, 1
jne 0x1401276a4
lea r15d, [rax - 0x27]
mov word [rbp - 7], r14w
mov edx, r15d
lea rcx, [rbp - 0x69]
mov r9, r11
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
mov eax, r14d
lea rcx, [rbp - 0x69]
lea edx, [r15 + 0x36]
cmp word [rcx], r14w
je 0x14012770c
cmp word [rcx], dx
je 0x1401277b8
inc eax
add rcx, 2
cmp eax, 5
jl 0x1401276f2
lea rcx, [rbp - 0x69]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r14d, eax
cmp eax, 5
jge 0x14012777a
xor ecx, ecx
lea r8, [rbp - 0x69]
xor eax, eax
mov word [rbp - 0x59], cx
mov qword [rbp - 0x57], rax
mov qword [rbp - 0x4f], rax
lea edx, [rcx + 0xa]
mov word [rbp - 0x47], ax
lea rcx, [rbp - 0x59]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea r8, str.00000
mov rdx, r15
lea rcx, [rbp - 0x69]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov eax, 5
lea r8, [rbp - 0x69]
sub eax, r14d
mov rdx, r15
movsxd rcx, eax
sub rdx, rcx
lea rcx, [r8 + rcx*2]
lea r8, [rbp - 0x59]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov ecx, 0xa4
call fcn.140021ddc
xor r14d, r14d
mov r15, rax
test rax, rax
je 0x14012763e
xor r8d, r8d
mov dword [rax], 0xa4
xor edx, edx
mov rcx, r12
call fcn.140021d2c
test rax, rax
jne 0x1401277d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1401279f7
cdqe
add rax, rax
cmp rax, 0xc
jae 0x140127a3c
mov word [rbp + rax - 0x69], r14w
jmp 0x14012770c
mov r14, qword [rbp + 0x7f]
test r14, r14
je 0x140127879
test r13, r13
je 0x140127879
lea rdx, str.PidGenX2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
xor eax, eax
test r12, r12
jne 0x140127812
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
xor r14d, r14d
jmp 0x1401279f7
mov dword [rdi + 0xd4], eax
mov eax, r14d
mov qword [rbp - 0x59], 0x18
cmp rax, r14
je 0x140127841
xor r9d, r9d
xor r8d, r8d
mov ecx, 0xc0000095
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rdx, qword [rbp - 0x71]
lea rax, [rbp - 0x59]
mov qword [rsp + 0x38], rsi
lea r8, [rbp - 0x69]
mov dword [rbp - 0x49], r14d
lea rcx, [rbp - 0x41]
mov qword [rsp + 0x30], r15
lea r14, [rdi + 0x18]
mov qword [rsp + 0x28], r14
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov qword [rbp - 0x51], r13
call r12
jmp 0x1401278c0
lea rdx, str.PidGenX
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor r14d, r14d
test rax, rax
je 0x1401277ab
mov rdx, qword [rbp - 0x71]
lea r8, [rbp - 0x69]
mov dword [rdi + 0xd4], r14d
lea rcx, [rbp - 0x41]
mov qword [rsp + 0x30], rsi
lea r14, [rdi + 0x18]
mov qword [rsp + 0x28], r15
xor r9d, r9d
mov qword [rsp + 0x20], r14
call rax
mov qword [rdi + 0x10], rsi
test eax, eax
jns 0x1401278d0
movzx ebx, ax
jmp 0x14012780a
mov rcx, rsi
call fcn.140127a44
mov rcx, r14
mov byte [rdi + 0xe0], al
call qword [sym.imp.KERNEL32.dll_lstrlenW]
xor r14d, r14d
cmp eax, 0x17
jne 0x1401279eb
xor eax, eax
mov word [rbp - 0x59], r14w
lea r8, [rsi + 0x14]
mov qword [rbp - 0x57], rax
lea r9d, [r14 + 5]
mov word [rbp - 0x4f], ax
lea rcx, [rbp - 0x59]
lea edx, [rax + 6]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
xor eax, eax
mov word [rbp - 0x71], r14w
lea r12d, [r14 + 3]
mov dword [rbp - 0x6f], eax
lea r13d, [r14 + 4]
mov word [rbp - 0x6b], ax
mov r9d, r12d
lea r8, [rdi + 0x24]
mov edx, r13d
lea rcx, [rbp - 0x71]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
lea rdx, [0x14018fb38]
lea rcx, [rbp - 0x71]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscmp
test eax, eax
jne 0x140127973
lea r8, [rdi + 0x30]
mov dword [rdi + 0xd4], 1
mov r9d, r12d
lea rcx, [rbp - 0x71]
mov edx, r13d
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
xor edx, edx
lea rcx, [rbp - 0x59]
lea r8d, [rdx + 0xa]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstol]
xor edx, edx
lea rcx, [rbp - 0x71]
mov dword [rdi + 0xcc], eax
lea r8d, [rdx + 0xa]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstol]
or r12, 0xffffffffffffffff
lea r8, [rsi + 0x118]
lea rcx, [rdi + 0xf0]
mov dword [rdi + 0xc8], eax
mov r9, r12
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
cmp eax, 0x50
jne 0x1401279cb
mov ebx, 0x7a
jmp 0x1401279fb
lea r8, [rsi + 0x88]
mov r9, r12
lea rcx, [rdi + 0x48]
mov edx, 0x40
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
cmp eax, 0x50
jne 0x140127a0d
jmp 0x1401279c4
mov ebx, reloc.Cabinet.dll_FCIFlushCabinet
jmp 0x1401279fb
mov ebx, 0x57
test ebx, ebx
je 0x140127a0d
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x140127a0d
call fcn.140021dfc
mov qword [rdi + 0x10], r14
test r15, r15
je 0x140127a1a
mov rcx, r15
call fcn.140021dfc
mov eax, ebx
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.140021f10
add rsp, 0xc8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140022aec
int3