Function at 0x140050d12
Capabilities:
Get system information on windows
Set current directory
Terminate process

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x238
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], rdx
mov rsi, rcx
mov rax, qword [0x140327038]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov r14, qword [0x14033b230]
lea rax, str.type
lea r8, [rsp + 0x70]
mov qword [r8], rax
mov qword [r8 + 8], 4
lea rdx, [rsp + 0x80]
mov rcx, r14
call fcn.140111780
lea r15, [rsi + 0x10]
cmp byte [rsi + 0x27], 0
js 0x140051312
mov rax, qword [rsp + 0x90]
mov qword [r15 + 0x10], rax
movups xmm0, xmmword [rsp + 0x80]
movups xmmword [r15], xmm0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
movzx eax, byte [rsi + 0x27]
test al, al
js 0x14005131f
test rax, rax
sete dil
mov rcx, r15
test rax, rax
je 0x140050dc4
test rcx, rcx
je 0x140051339
cmp rax, 7
jne 0x140050f82
mov eax, 0x76726573
xor eax, dword [rcx]
mov edx, 0x65636976
xor edx, dword [rcx + 3]
or edx, eax
sete bpl
lea rdx, str.check_state_and_terminate
mov rcx, r14
call fcn.140114b30
test al, al
jne 0x14005133c
mov rcx, r14
call fcn.140051d61
cmp eax, 6
setne al
or bpl, dil
or bpl, al
cmp bpl, 1
je 0x140050f89
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
xor eax, eax
mov qword [rsp + 0x50], rax
lea r12, [rsp + 0x210]
mov qword [r12 + 0x10], rax
movaps xmmword [r12], xmm0
mov ecx, 3
mov rdx, r12
call fcn.14011a4f0
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r13, [rsp + 0x1f0]
mov qword [r13 + 0x10], rax
movaps xmm0, xmmword [0x1402e6d80]
movaps xmmword [r13], xmm0
lea rax, str.115.0.1901.188
lea r8, [rsp + 0x1e0]
mov qword [r8], rax
mov qword [r8 + 8], 0xe
lea rbp, [rsp + 0x80]
mov rcx, r12
mov rdx, rbp
call fcn.1400bafc0
lea rbx, str.msedge.dll
lea r8, [rsp + 0x1d0]
mov qword [r8], rbx
mov qword [r8 + 8], 0xa
mov rcx, rbp
mov rdx, r13
call fcn.1400bb050
cmp byte [rbp + 0x17], 0
jns 0x140050ecd
mov rcx, qword [rsp + 0x80]
call fcn.14013a6ac
lea r12, [rsp + 0x80]
lea rdx, [rsp + 0x1f0]
mov rcx, r12
mov r8d, 0x21
call fcn.1400513d0
mov r13, qword [r12]
mov rcx, r12
call fcn.1400624d0
inc r13
cmp r13, 2
jae 0x140051119
lea r8, [rsp + 0x1c0]
mov qword [r8], rbx
mov qword [r8 + 8], 0xa
lea rcx, [rsp + 0x210]
lea rdx, [rsp + 0x80]
call fcn.1400bb050
cmp byte [rsp + 0x207], 0
jns 0x140050f43
mov rcx, qword [rsp + 0x1f0]
call fcn.14013a6ac
cmp byte [rsp + 0x227], 0
jns 0x140050f5a
mov rcx, qword [rsp + 0x210]
call fcn.14013a6ac
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x50], rax
movups xmm0, xmmword [rsp + 0x80]
movaps xmmword [rsp + 0x40], xmm0
movzx eax, byte [rsp + 0x57]
test al, al
js 0x140050fa4
and eax, 0x7f
jmp 0x140050fa9
xor ebp, ebp
jmp 0x140050de3
call fcn.1402b5f20
movzx edx, al
shl rdx, 0xc
lea rcx, [rsp + 0x60]
call fcn.140052a56
jmp 0x140050e18
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x140051133
lea r13, [rsp + 0x40]
mov rcx, r13
mov rdx, r12
call fcn.1400afb90
cmp byte [rsp + 0x97], 0
jns 0x140050fd4
mov r12, qword [rsp + 0x80]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp byte [rsp + 0x97], 0
jns 0x140050ff4
mov rcx, qword [rsp + 0x80]
call fcn.14013a6ac
lea r12, [rsp + 0x80]
mov rcx, r12
call fcn.14012820d
cmp byte [r12 + 0x17], 0
jns 0x140051014
mov r12, qword [rsp + 0x80]
mov rcx, r12
call fcn.140051400
xor al, 1
mov byte [0x14033b078], al
cmp byte [rsp + 0x97], 0
jns 0x14005103b
mov rcx, qword [rsp + 0x80]
call fcn.14013a6ac
movabs r8, 0x7fffffffffffffff
mov rcx, r13
mov dl, 1
call fcn.1400e21d0
cmp byte [rsp + 0x57], 0
jns 0x14005105b
mov r13, qword [rsp + 0x40]
mov rcx, r13
xor edx, edx
mov r8d, 8
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
je 0x1400511df
mov qword [rsi + 8], rax
test dil, dil
jne 0x14005108e
mov ecx, 0x27f
mov edx, 1
call qword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
mov rax, qword [rsi]
mov rax, qword [rax + 8]
lea r9, [rsp + 0x40]
mov rcx, rsi
mov rdx, r14
mov r8, r15
call qword [case.0x14017aab5.0]
mov rcx, qword [rsi + 8]
lea rdx, str.ChromeMain
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r9, qword [0x14033b230]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
call qword [case.0x14017aab5.0]
mov esi, eax
cmp byte [rsp + 0x57], 0
jns 0x1400510e9
mov rcx, qword [rsp + 0x40]
call fcn.14013a6ac
lea rcx, [rsp + 0x60]
call fcn.1401293dc
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14013d520
mov eax, esi
add rsp, 0x238
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [rsp + 0x80]
lea rdx, [rsp + 0x1f0]
call fcn.1400c6370
jmp 0x140050f2c
cmp dword [0x14033b1a8], 2
jg 0x14005119a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rdx, str.....chrome_appmain_dll_loader_win.cc
lea rdi, [rsp + 0x80]
mov rcx, rdi
mov r8d, 0x75
mov r9d, 2
call fcn.1401fea80
lea rcx, [rsp + 0x90]
lea rdx, str.Cannot_find_module
mov r8d, 0x13
call fcn.1401970a4
lea rdx, str.msedge.dll
mov rcx, rax
call fcn.1401febc0
mov rcx, rdi
call fcn.1401feb00
mov eax, dword [0x14033aea8]
mov ecx, dword [0x140337e40]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140051278
cmp word [0x14033ae78], 0
je 0x1400513ba
mov qword [rsi + 8], 0
mov esi, 7
jmp 0x1400510d8
cmp dword [0x14033b1a8], 2
jg 0x140051244
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rdx, str.....chrome_appmain_dll_loader_win.cc
lea rdi, [rsp + 0x80]
mov rcx, rdi
mov r8d, 0x7f
mov r9d, 2
call fcn.1401fea80
lea rcx, [rsp + 0x90]
lea rdx, str.Failed_to_load_Chrome_DLL_from
mov r8d, 0x1f
call fcn.1401970a4
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.140133a50
mov rcx, rdi
call fcn.1401feb00
mov eax, dword [0x14033aea8]
mov ecx, dword [0x140337e40]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400512c7
cmp word [0x14033ae78], 0
jne 0x1400511cd
jmp 0x1400513c0
lea rcx, [0x14033aea8]
call fcn.14013b388
cmp dword [0x14033aea8], 0xffffffff
jne 0x1400511bf
xorps xmm0, xmm0
movups xmmword [0x14033ae98], xmm0
movups xmmword [0x14033ae88], xmm0
movups xmmword [0x14033ae78], xmm0
lea rcx, [0x14033ae78]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14033aea8]
call fcn.14013a7d4
jmp 0x1400511bf
lea rcx, [0x14033aea8]
call fcn.14013b388
cmp dword [0x14033aea8], 0xffffffff
jne 0x140051265
xorps xmm0, xmm0
movups xmmword [0x14033ae98], xmm0
movups xmmword [0x14033ae88], xmm0
movups xmmword [0x14033ae78], xmm0
lea rcx, [0x14033ae78]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14033aea8]
call fcn.14013a7d4
jmp 0x140051265
mov rcx, qword [r15]
call fcn.14013a6ac
jmp 0x140050d80
mov rax, qword [rsi + 0x18]
test rax, rax
sete dil
js 0x1400513bd
mov rcx, qword [rsi + 0x10]
jmp 0x140050db6
int3
cmp dword [0x14033b1a8], 2
jg 0x1400513a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rdx, str.....chrome_appmain_dll_loader_win.cc
lea r12, [rsp + 0x80]
mov rcx, r12
mov r8d, 0x9f
mov r9d, 2
call fcn.1401fea80
lea rcx, [rsp + 0x90]
lea rdx, str.Browser_state_checked_and_exiting.
mov r8d, 0x22
call fcn.1401970a4
mov rcx, rax
mov edx, 0xa0
call fcn.1401a065a
mov rcx, r12
call fcn.1401feb00
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xa0
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x140050dfa
int3
int3
int3