Function at 0x140124448
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 [0x1401d4618]
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.1400206a0
mov rsi, rax
test rax, rax
je 0x1401244ca
xor edx, edx
mov r8d, 0x4f8
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
jmp 0x1401244cd
mov rsi, r14
test rsi, rsi
jne 0x1401244dc
mov ebx, reloc.Cabinet.dll_FCIDestroy
jmp 0x14012488f
mov dword [rsi], 0x4f8
mov rcx, qword [rdi]
test rcx, rcx
je 0x140124886
or rdx, 0xffffffffffffffff
mov rax, rdx
inc rax
cmp word [rcx + rax*2], r14w
jne 0x1401244f5
cmp rax, 0x19
jne 0x140124886
mov r8, qword [rdi + 8]
test r8, r8
je 0x140124886
mov rax, rdx
inc rax
cmp word [r8 + rax*2], r14w
jne 0x140124519
mov r11d, 5
cmp rax, r11
jb 0x140124886
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 0x14012453b
lea eax, [r9 + 0x2d]
mov word [rbp + rdx*2 - 0x41], ax
inc rdx
sub r10, 1
jne 0x140124538
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 0x1401245a0
cmp word [rcx], dx
je 0x14012464c
inc eax
add rcx, 2
cmp eax, 5
jl 0x140124586
lea rcx, [rbp - 0x69]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r14d, eax
cmp eax, 5
jge 0x14012460e
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.1400206a0
xor r14d, r14d
mov r15, rax
test rax, rax
je 0x1401244d2
xor r8d, r8d
mov dword [rax], 0xa4
xor edx, edx
mov rcx, r12
call fcn.1400205f0
test rax, rax
jne 0x140124666
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x14012488b
cdqe
add rax, rax
cmp rax, 0xc
jae 0x1401248d0
mov word [rbp + rax - 0x69], r14w
jmp 0x1401245a0
mov r14, qword [rbp + 0x7f]
test r14, r14
je 0x14012470d
test r13, r13
je 0x14012470d
lea rdx, [0x1401d4a60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
xor eax, eax
test r12, r12
jne 0x1401246a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
xor r14d, r14d
jmp 0x14012488b
mov dword [rdi + 0xd4], eax
mov eax, r14d
mov qword [rbp - 0x59], 0x18
cmp rax, r14
je 0x1401246d5
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 0x140124754
lea rdx, str.PidGenX
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor r14d, r14d
test rax, rax
je 0x14012463f
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 0x140124764
movzx ebx, ax
jmp 0x14012469e
mov rcx, rsi
call fcn.1401248d8
mov rcx, r14
mov byte [rdi + 0xe0], al
call qword [sym.imp.KERNEL32.dll_lstrlenW]
xor r14d, r14d
cmp eax, 0x17
jne 0x14012487f
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, [0x14018f138]
lea rcx, [rbp - 0x71]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscmp
test eax, eax
jne 0x140124807
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 0x14012485f
mov ebx, 0x7a
jmp 0x14012488f
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 0x1401248a1
jmp 0x140124858
mov ebx, reloc.Cabinet.dll_FCIFlushCabinet
jmp 0x14012488f
mov ebx, 0x57
test ebx, ebx
je 0x1401248a1
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x1401248a1
call fcn.1400206c0
mov qword [rdi + 0x10], r14
test r15, r15
je 0x1401248ae
mov rcx, r15
call fcn.1400206c0
mov eax, ebx
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.140121d80
add rsp, 0xc8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1401233ac
int3