Function at 0x1400132d0
Capabilities:
Set current directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1060]
mov eax, 0x1160
call fcn.140067f60
sub rsp, rax
mov rax, qword [0x14008b180]
xor rax, rsp
mov qword [rbp + 0x1050], rax
mov rsi, r8
mov byte [rbp + 0x558], 0
lea rax, str.dll_dirs_F67BB3AD_7B5E_4C2D_A22B_747BC163AB78
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x68], rax
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001335a
lea rdx, str.SetDefaultDllDirectories
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001335a
mov ecx, 0x1000
call qword [case.0x14002be35.0]
lea rcx, [rbp + 0x60]
call fcn.140012ba0
xor r14d, r14d
cmp byte [rax + 0x20], r14b
je 0x1400133b7
cmp byte [rbp + 0x558], r14b
je 0x140013389
mov rdx, rax
lea rcx, [rbp + 0x538]
call fcn.1400183a0
jmp 0x140013421
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x538], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x548], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
mov byte [rbp + 0x558], 1
jmp 0x140013421
cmp byte [rbp + 0x558], r14b
je 0x140013421
mov rdx, qword [rbp + 0x550]
cmp rdx, 8
jb 0x140013409
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x538]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013404
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140013404
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140067440
movdqa xmm0, xmmword [0x1400772e0]
movdqu xmmword [rbp + 0x548], xmm0
mov word [rbp + 0x538], r14w
lea rcx, [rbp + 0x60]
call fcn.140017650
mov qword [rbp - 0x60], r14
mov qword [rbp - 0x68], r14
movdqa xmm1, xmmword [0x1400772e0]
movdqu xmmword [rbp - 0x58], xmm1
mov qword [rbp + 0x580], r14
lea rdi, [0x14008b1c8]
mov qword [rbp + 0x588], rdi
movups xmm0, xmmword [rbp - 0x68]
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x18], xmm1
lea rax, [rbp + 0x580]
mov qword [rsp + 0x38], rax
lea r9, str.AgentController
lea rcx, [rbp + 0x40]
call fcn.140008fa0
lea r8, [rbp - 0x28]
lea rdx, [rbp + 0x40]
lea rcx, [rbp]
call fcn.1400116d0
mov qword [rbp - 0x48], r14
movdqa xmm0, xmmword [0x1400772e0]
movdqu xmmword [rbp - 0x38], xmm0
mov r8d, 0xf
lea rdx, str.AgentController
lea rcx, [rbp - 0x48]
call fcn.14002d2e0
lea rdx, [rbp - 0x48]
lea rcx, [rbp + 0xb0]
call fcn.140023c10
lea rcx, [rbp]
mov qword [rsp + 0x20], rcx
mov r9, rax
lea rcx, [rbp + 0x5c8]
call fcn.1400296b0
lea rcx, [rbp + 0xb0]
call fcn.140023200
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x14001350c
mov rax, qword [rcx]
lea rdx, [rbp]
cmp rcx, rdx
setne dl
mov rax, qword [rax + 0x20]
call qword [case.0x14002be35.0]
mov qword [rbp + 0x38], r14
call fcn.140017d60
call qword [sym.imp.WINMM.dll_timeGetTime]
mov dword [rbp + 0xa20], eax
mov r9, 0xffffffffffffffff
lea r8, str.wWinMain
mov edx, 0x102
lea rcx, [rbp + 0xa24]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
lea r8, [0x140073f4c]
mov edx, 0x104
lea rcx, [rbp + 0xa24]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov r9, 0xffffffffffffffff
lea r8, str.wWinMain
mov edx, 0x104
lea rcx, [rbp + 0xc2c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov ecx, dword [0x14008e500]
mov eax, dword [0x14008e504]
mov r15d, 1
lea r12, str.____s
add ecx, eax
je 0x140013632
mov dword [rsp + 0x48], r14d
call fcn.140017d60
mov qword [rsp + 0x40], rax
lock inc dword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
test rax, rax
jne 0x1400135c4
call fcn.140017d60
mov qword [rsp + 0x40], rax
lock inc dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
mov dword [rsp + 0x60], 0x20
lea rax, [rbp + 0xa24]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r12
lea rax, [rbp + 0xc2c]
mov qword [rsp + 0x20], rax
lea r9, [0x140000000]
lea r8, [rsp + 0x60]
movsx edx, r15w
call fcn.140001e10
mov qword [rsp + 0x40], r14
mov eax, 0xffffffff
lock xadd dword [rsp + 0x48], eax
cmp eax, r15d
js 0x14001362d
call fcn.14001db10
mov eax, 0xffffffff
lock xadd dword [rsp + 0x48], eax
cmp eax, r15d
jns 0x140013618
lock inc dword [rsp + 0x48]
lea r8, str.wWinMain
mov edx, 0x10
lea rcx, [rbp + 0x140]
call fcn.140002b50
mov rbx, rax
movzx ecx, byte [rax + 0x80]
test cl, cl
je 0x140013689
lea rdx, str.dllprotect_status
mov rcx, rax
call fcn.140029060
movzx ecx, byte [rbx + 0x80]
test cl, cl
je 0x140013689
lea rdx, [0x140002880]
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
movzx ecx, byte [rbx + 0x80]
movsx rax, byte [rbp + 0x5f8]
test rax, rax
sete dl
test cl, cl
je 0x1400136a4
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___bool____ptr64]
lea rcx, [rbp + 0x1d8]
call fcn.140002890
lea rcx, [rbp + 0x1d8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
lea rcx, [0x14008e588]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [0x14008e580], r14
jne 0x1400136d8
call fcn.14002d4a0
lea rcx, [0x14008e588]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor edx, edx
mov r8d, 0x20a
lea rcx, [rbp + 0xe40]
call sub.VCRUNTIME140.dll_memset
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
mov r8d, 0x105
lea rdx, [rbp + 0xe40]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rbp + 0xe40]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea rcx, [rbp + 0xe40]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea r8, str.SetDirectory
mov edx, 0x10
lea rcx, [rbp + 0x238]
call fcn.140002b50
mov rbx, rax
movzx eax, byte [rax + 0x80]
test al, al
je 0x140013780
lea rdx, [0x140074d90]
mov rcx, rbx
call fcn.140029060
movzx eax, byte [rbx + 0x80]
test al, al
je 0x140013780
lea rdx, [rbp + 0xe40]
mov rcx, rbx
call fcn.140029060
lea rcx, [rbp + 0x2d0]
call fcn.140002890
lea rcx, [rbp + 0x2d0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
lea rcx, [rbp + 0xe40]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea r8, str.wWinMain
mov edx, 0x10
lea rcx, [rbp + 0x330]
call fcn.140002b50
mov rbx, rax
movzx eax, byte [rax + 0x80]
test al, al
je 0x1400137f1
lea rdx, str.cmd_line_
mov rcx, rbx
call fcn.140029400
movzx eax, byte [rbx + 0x80]
test al, al
je 0x1400137f1
mov rdx, rsi
mov rcx, rbx
call fcn.140029060
lea rcx, [rbp + 0x3c8]
call fcn.140002890
lea rcx, [rbp + 0x3c8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
mov qword [rbp + 0x528], r14
mov qword [rbp + 0x530], rdi
lea rdx, [rbp + 0x528]
lea rcx, [rbp + 0x560]
call fcn.140030ba0
mov edi, dword [rbp + 0x528]
mov rcx, qword [0x14008b1d0]
mov rax, qword [rbp + 0x530]
cmp qword [rax + 8], rcx
jne 0x140013acd
test edi, edi
jne 0x140013acd
lea rcx, [rbp + 0x560]
cmp qword [rbp + 0x578], 8
cmovae rcx, qword [rbp + 0x560]
lea rdx, [0x140074e7c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140013b31
mov qword [rbp + 0x520], r14
lea rcx, [rbp + 0x520]
call fcn.14000a700
mov rbx, qword [rbp + 0x520]
test rbx, rbx
je 0x140013b31
call fcn.14000c020
test al, al
je 0x140013ab6
mov byte [rsp + 0x74], r14b
mov qword [rsp + 0x78], r14
mov qword [rbp - 0x78], r14
mov qword [rbp - 0x70], 0xf
lea r8d, [rdi + 0x26]
lea rdx, str.438637D6_D726_4202_81EE_1E2146F87F88
lea rcx, [rsp + 0x78]
call fcn.14002d960
call qword [sym.imp.WINMM.dll_timeGetTime]
mov dword [rbp + 0x600], eax
mov r9, 0xffffffffffffffff
lea r8, str.bd::process_broker::client::spawn_process_with_current_params
mov edx, 0x102
lea rcx, [rbp + 0x604]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
lea r8, [0x140073f4c]
mov edx, 0x104
lea rcx, [rbp + 0x604]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov r9, 0xffffffffffffffff
lea r8, str.bd::process_broker::client::spawn_process_with_current_params
mov edx, 0x104
lea rcx, [rbp + 0x80c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov ecx, dword [0x14008e500]
mov eax, dword [0x14008e504]
add ecx, eax
je 0x1400139ec
mov dword [rsp + 0x58], r14d
call fcn.140017d60
mov qword [rsp + 0x50], rax
lock inc dword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
test rax, rax
jne 0x14001397e
call fcn.140017d60
mov qword [rsp + 0x50], rax
lock inc dword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov dword [rsp + 0x64], 0x20
lea rax, [rbp + 0x604]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r12
lea rax, [rbp + 0x80c]
mov qword [rsp + 0x20], rax
lea r9, [0x140000000]
lea r8, [rsp + 0x64]
movsx edx, r15w
call fcn.140001e10
mov qword [rsp + 0x50], r14
mov eax, 0xffffffff
lock xadd dword [rsp + 0x58], eax
cmp eax, r15d
js 0x1400139e7
call fcn.14001db10
mov eax, 0xffffffff
lock xadd dword [rsp + 0x58], eax
cmp eax, r15d
jns 0x1400139d2
lock inc dword [rsp + 0x58]
mov byte [rbp + 0xa8], r14b
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x88]
lea r8, [rsp + 0x78]
lea rdx, [rbp + 0x590]
call fcn.14000ad70
lea rcx, [rbp + 0x600]
call fcn.140001e70
mov rdx, qword [rbp - 0x70]
cmp rdx, 0x10
jb 0x140013a60
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013a5b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140013a5b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140067440
cmp byte [rbp + 0x5c0], r14b
jne 0x140013aa3
cmp byte [rbp + 0x594], r14b
je 0x140013aa3
lea rcx, [rbp + 0x590]
call fcn.140015e60
mov rcx, qword [rbp + 0x520]
call fcn.1400070c0
mov edx, 0x50
mov rcx, qword [rbp + 0x520]
call fcn.140067440
mov ebx, r14d
jmp 0x140013b3b
lea rcx, [rbp + 0x590]
call fcn.140015e60
mov rbx, qword [rbp + 0x520]
mov rcx, rbx
call fcn.1400070c0
mov edx, 0x50
mov rcx, rbx
call fcn.140067440
jmp 0x140013b31
lea r8, str.wWinMain
mov edx, 8
lea rcx, [rbp + 0x428]
call fcn.140002b50
mov rbx, rax
movzx eax, byte [rax + 0x80]
test al, al
je 0x140013b18
lea rdx, str.get_connect_appid_suffix_err
mov rcx, rbx
call fcn.140029060
movzx eax, byte [rbx + 0x80]
test al, al
je 0x140013b18
mov edx, edi
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___int____ptr64]
lea rcx, [rbp + 0x4c0]
call fcn.140002890
lea rcx, [rbp + 0x4c0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
mov rcx, rsi
call fcn.140013c00
mov ebx, eax
mov rdx, qword [rbp + 0x578]
cmp rdx, 8
jb 0x140013b84
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x560]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013b7f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140013b7f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140067440
mov qword [rbp + 0x570], r14
mov qword [rbp + 0x578], 7
mov word [rbp + 0x560], r14w
call fcn.14002d400
nop
lea rcx, [rbp + 0xa20]
call fcn.140001e70
call fcn.14001db10
lea rcx, [rbp + 0x5c8]
call fcn.140014710
lea rcx, [rbp + 0x538]
call fcn.140017650
mov eax, ebx
mov rcx, qword [rbp + 0x1050]
xor rcx, rsp
call fcn.1400673e0
lea r11, [rsp + 0x1160]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret