Function at 0x4127a0
Capabilities:
Set current directory
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56c3f8
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x5edd38]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x78], ebx
push 0x7c
mov edi, dword [eax]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x78], edi
call fcn.00406a5e
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], ebx
test esi, esi
je 0x412811
push 0x7c
push ebx
push esi
call fcn.0053f340
add esp, 0xc
mov ecx, esi
push edi
call fcn.00413922
mov edi, dword [0x5f3910]
mov dword [ebp - 4], 0xffffffff
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x1c], eax
push esi
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x41285c
mov eax, 4
jmp 0x413889
mov edi, dword [0x5f3910]
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x5817c0]
mov ecx, edi
call esi
xor eax, eax
mov dword [ebp - 0x88], 7
push 2
push 0x585894
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x8c], eax
mov word [ebp - 0x9c], ax
call fcn.00408f30
mov esi, dword [ebp - 0x78]
lea eax, [ebp - 0x9c]
push eax
mov ecx, esi
mov dword [ebp - 4], 3
call fcn.0040d150
mov byte [ebp - 0x70], al
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 4], 4
cmp ecx, 8
jb 0x4128de
inc ecx
push ecx
push dword [ebp - 0x9c]
lea ecx, [ebp - 0x9c]
call fcn.0040a2e0
push 3
xor eax, eax
mov dword [ebp - 4], 0xffffffff
push 0x585524
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 7
mov word [ebp - 0x9c], ax
call fcn.00408f30
lea eax, [ebp - 0x9c]
mov dword [ebp - 4], 5
push eax
mov ecx, esi
call fcn.0040d150
mov byte [ebp - 0x71], al
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 4], 6
cmp ecx, 8
jb 0x412951
inc ecx
push ecx
push dword [ebp - 0x9c]
lea ecx, [ebp - 0x9c]
call fcn.0040a2e0
push 3
xor eax, eax
mov dword [ebp - 4], 0xffffffff
push 0x5855cc
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 7
mov word [ebp - 0x9c], ax
call fcn.00408f30
lea eax, [ebp - 0x9c]
mov dword [ebp - 4], 7
push eax
mov ecx, esi
call fcn.0040d150
mov byte [ebp - 0xa0], al
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 4], 8
cmp ecx, 8
jb 0x4129c7
inc ecx
push ecx
push dword [ebp - 0x9c]
lea ecx, [ebp - 0x9c]
call fcn.0040a2e0
cmp byte [ebp - 0x71], 0
mov dword [ebp - 4], 0xffffffff
je 0x412a62
lea eax, [ebp - 0x54]
push 0x5856c4
push eax
call fcn.00497e20
add esp, 8
mov dword [ebp - 0x14], eax
mov ebx, 2
mov ecx, eax
mov dword [ebp - 0x80], ebx
cmp dword [eax + 0x14], 8
jb 0x412a01
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov eax, dword [eax + 0x10]
cmp eax, 0xd
jb 0x412a62
add eax, 0xfffffff4
lea eax, [ecx + eax*2]
mov dword [ebp - 0x1c], eax
sub eax, ecx
sar eax, 1
je 0x412a62
cmp word [ecx], 0x70
je 0x412a27
add ecx, ebx
sub eax, 1
jne 0x412a18
jmp 0x412a62
mov edx, 0x58536c
mov edi, ecx
mov esi, 0xd
sub edi, edx
nop word [eax + eax]
mov ax, word [edi + edx]
cmp ax, word [edx]
jne 0x412d6f
add edx, ebx
sub esi, 1
jne 0x412a40
sub ecx, dword [ebp - 0x14]
sar ecx, 1
mov byte [ebp - 0x72], 1
cmp ecx, 0xffffffff
jne 0x412a66
mov byte [ebp - 0x72], 0
test bl, 2
je 0x412a94
and ebx, 0xfffffffd
mov dword [ebp - 0x80], ebx
mov eax, dword [ebp - 0x40]
mov dword [ebp - 4], 9
cmp eax, 8
jb 0x412a8d
inc eax
lea ecx, [ebp - 0x54]
push eax
push dword [ebp - 0x54]
call fcn.0040a2e0
mov dword [ebp - 4], 0xffffffff
push 2
xor eax, eax
mov dword [ebp - 0x8c], 0
push 0x58589c
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x88], 7
mov word [ebp - 0x9c], ax
call fcn.00408f30
mov ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x9c]
push eax
mov dword [ebp - 4], 0xa
call fcn.0040d150
mov byte [ebp - 0x79], al
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 4], 0xb
cmp ecx, 8
jb 0x412b01
inc ecx
push ecx
push dword [ebp - 0x9c]
lea ecx, [ebp - 0x9c]
call fcn.0040a2e0
mov edi, dword [0x5f3910]
mov dword [ebp - 4], 0xffffffff
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov bl, byte [ebp - 0x70]
mov byte [edi + 0x38], bl
push esi
mov dword [ebp - 4], 0xc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [0x5f3910]
mov dword [ebp - 4], 0xffffffff
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [ebp - 0xa0]
mov byte [edi + 0x49], al
push esi
mov dword [ebp - 4], 0xd
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [0x5f3910]
mov dword [ebp - 4], 0xffffffff
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov bh, byte [ebp - 0x71]
mov byte [edi + 0x39], bh
push esi
mov dword [ebp - 4], 0xe
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [0x5f3910]
mov dword [ebp - 4], 0xffffffff
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [ebp - 0x72]
mov byte [edi + 0x5e], al
push esi
mov dword [ebp - 4], 0xf
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 0xffffffff
call fcn.0040aac0
cmp eax, 6
jl 0x412c6d
mov edi, dword [0x5f3910]
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov bl, byte [edi + 0x5e]
push esi
mov dword [ebp - 4], 0x10
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 0xffffffff
test bl, bl
jne 0x412c6a
mov edi, dword [0x5f3910]
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov bl, byte [edi + 0x39]
push esi
mov dword [ebp - 4], 0x11
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 0xffffffff
test bl, bl
jne 0x412c6a
cmp byte [0x5f16e4], bl
jne 0x412c6a
call fcn.00415050
test al, al
jne 0x412c42
push 1
push str.bEnableAppContainerForDebugging
call fcn.0047e8d0
add esp, 8
test ax, ax
je 0x412c6a
push 1
push 0x5858e8
call fcn.004103a0
mov ecx, dword [0x5f3910]
add esp, 8
test eax, eax
setne al
mov byte [0x5f17f0], al
movzx eax, al
push eax
call fcn.004150b0
mov bl, byte [ebp - 0x70]
call fcn.0040aac0
cmp eax, 5
jl 0x412cb3
push 1
push str.bEnableStrictHandleCheckProtection
call fcn.004103a0
add esp, 8
test eax, eax
je 0x412cb3
mov edi, dword [0x5f3910]
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [edi + 0x64], 1
push esi
mov dword [ebp - 4], 0x12
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 0xffffffff
call fcn.00415200
test bl, bl
je 0x412cef
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, dword [0x5f3910]
mov ebx, eax
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [edi + 0x4c], ebx
push esi
mov dword [ebp - 4], 0x13
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov bh, byte [ebp - 0x71]
mov dword [ebp - 4], 0xffffffff
xorps xmm0, xmm0
lea ecx, [ebp - 0x34]
movlpd qword [ebp - 0x34], xmm0
call fcn.00415390
cmp byte [ebp - 0xa0], 0
mov dword [ebp - 4], 0x14
mov dword [0x5ed03c], 1
jne 0x412d79
test bh, bh
jne 0x412d79
push 0x20019
push 0x585938
push 0x80000001
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x81], 1
call fcn.004153a0
test eax, eax
jne 0x412d80
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x34]
lea eax, [ebp - 0x14]
push eax
push 0x585990
call fcn.004104f0
mov ecx, dword [0x5ed03c]
test eax, eax
cmove ecx, dword [ebp - 0x14]
mov dword [0x5ed03c], ecx
lea ecx, [ebp - 0x34]
call fcn.00415420
jmp 0x412d80
mov eax, dword [ebp - 0x1c]
add ecx, ebx
jmp 0x412a12
mov byte [ebp - 0x81], 0
push 0x584c58
call fcn.0040bf00
add esp, 4
test al, al
jne 0x412e57
call fcn.0040b570
mov ecx, str.type
mov dword [ebp - 0x8c], 0
mov esi, eax
mov dword [ebp - 0x88], 0xf
mov byte [ebp - 0x9c], 0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x412dc0
sub ecx, edx
push ecx
push str.type
lea ecx, [ebp - 0x9c]
call fcn.0040b580
lea eax, [ebp - 0x9c]
mov byte [ebp - 4], 0x15
push eax
lea eax, [ebp - 0x54]
mov ecx, esi
push eax
call fcn.0040b680
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0x17
call fcn.0040ba20
lea eax, [ebp - 0x54]
push str.compute_only_broker
push eax
call fcn.00410020
add esp, 8
test al, al
jne 0x412e4b
lea eax, [ebp - 0x54]
push str.compute_only_renderer
push eax
call fcn.00410020
add esp, 8
test al, al
jne 0x412e4b
push 1
push str.bEnforceReadRestrictions
call fcn.004103a0
add esp, 8
mov byte [ebp - 4], 0x14
test eax, eax
lea ecx, [ebp - 0x54]
setne bl
call fcn.0040ba20
jmp 0x412e59
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0x14
call fcn.0040ba20
xor bl, bl
mov edi, dword [0x5f3910]
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [edi + 0x51], bl
push esi
mov byte [ebp - 4], 0x18
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 4], 0x14
call fcn.0040b570
mov ecx, str.type
mov dword [ebp - 0x8c], 0
mov esi, eax
mov dword [ebp - 0x88], 0xf
mov byte [ebp - 0x9c], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x412ea5
sub ecx, edx
push ecx
push str.type
lea ecx, [ebp - 0x9c]
call fcn.0040b580
lea eax, [ebp - 0x9c]
mov byte [ebp - 4], 0x19
push eax
lea eax, [ebp - 0x54]
mov ecx, esi
push eax
call fcn.0040b680
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0x1b
call fcn.0040ba20
lea eax, [ebp - 0x54]
push str.compute_only_broker
push eax
call fcn.00410020
add esp, 8
test al, al
jne 0x412f24
lea eax, [ebp - 0x54]
push str.compute_only_renderer
push eax
call fcn.00410020
add esp, 8
test al, al
jne 0x412f24
push 1
push str.bEnableGlobalAtomRestrictions
call fcn.004103a0
add esp, 8
test eax, eax
setne bl
jmp 0x412f26
xor bl, bl
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0x14
call fcn.0040ba20
mov edi, dword [0x5f3910]
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [edi + 0x58], bl
push esi
mov byte [ebp - 4], 0x1c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [0x5f3910]
mov byte [ebp - 4], 0x14
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [edi + 0x59], 0
push esi
mov byte [ebp - 4], 0x1d
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 4], 0x14
call fcn.0040b570
mov ecx, str.type
mov dword [ebp - 0x8c], 0
mov esi, eax
mov dword [ebp - 0x88], 0xf
mov byte [ebp - 0x9c], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x412fa1
sub ecx, edx
push ecx
push str.type
lea ecx, [ebp - 0x9c]
call fcn.0040b580
lea eax, [ebp - 0x9c]
mov byte [ebp - 4], 0x1e
push eax
lea eax, [ebp - 0x54]
mov ecx, esi
push eax
call fcn.0040b680
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0x20
call fcn.0040ba20
lea eax, [ebp - 0x54]
push str.compute_only_broker
push eax
call fcn.00410020
add esp, 8
test al, al
jne 0x413020
lea eax, [ebp - 0x54]
push str.compute_only_renderer
push eax
call fcn.00410020
add esp, 8
test al, al
jne 0x413020
push 1
push str.bPreventCreatingExecutables
call fcn.004103a0
add esp, 8
test eax, eax
setne bl
jmp 0x413022
xor bl, bl
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0x14
call fcn.0040ba20
mov edi, dword [0x5f3910]
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [edi + 0x5a], bl
push esi
mov byte [ebp - 4], 0x21
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 4], 0x14
call fcn.0040b570
mov ecx, str.type
mov dword [ebp - 0x8c], 0
mov esi, eax
mov dword [ebp - 0x88], 0xf
mov byte [ebp - 0x9c], 0
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x413080
sub ecx, edx
push ecx
push str.type
lea ecx, [ebp - 0x9c]
call fcn.0040b580
lea eax, [ebp - 0x9c]
mov byte [ebp - 4], 0x22
push eax
lea eax, [ebp - 0x54]
mov ecx, esi
push eax
call fcn.0040b680
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0x24
call fcn.0040ba20
lea eax, [ebp - 0x54]
push str.renderer
push eax
call fcn.00410020
add esp, 8
test al, al
jne 0x4130ff
lea eax, [ebp - 0x54]
push str.compute_only_renderer
push eax
call fcn.00410020
add esp, 8
test al, al
jne 0x4130ff
push 1
push str.bEnableBinaryPlantingProtection
call fcn.004103a0
add esp, 8
test eax, eax
setne bl
jmp 0x413101
xor bl, bl
lea ecx, [ebp - 0x54]
mov byte [ebp - 0x82], bl
mov byte [ebp - 4], 0x14
call fcn.0040ba20
mov edi, dword [0x5f3910]
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [edi + 0x5b], bl
push esi
mov byte [ebp - 4], 0x25
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 4], 0x14
mov byte [ebp - 0x72], 0
call fcn.00415660
mov edi, dword [0x5f3910]
mov bl, al
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [edi + 0x48], bl
push esi
mov byte [ebp - 4], 0x26
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 4], 0x14
call fcn.004157a0
mov edi, dword [0x5f3910]
mov bl, al
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [edi + 0x5c], bl
push esi
mov byte [ebp - 4], 0x27
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 4], 0x14
call fcn.00415910
push 1
push str.bEnableEnhancedPolicyRestrictions
mov byte [0x5ed038], al
call fcn.004103a0
mov edi, dword [0x5f3910]
add esp, 8
test eax, eax
setne bl
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [edi + 0x5d], bl
push esi
mov byte [ebp - 4], 0x28
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push str.bImproveSaveExperience
mov byte [ebp - 4], 0x14
call fcn.004103a0
mov edi, dword [0x5f3910]
add esp, 8
test eax, eax
setne bl
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [edi + 0x74], bl
push esi
mov byte [ebp - 4], 0x29
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov bl, byte [ebp - 0x70]
mov dword [ebp - 0x2c], 0
test bl, bl
jne 0x413213
mov byte [ebp - 0x75], 1
test bh, bh
je 0x413217
mov byte [ebp - 0x75], 0
xor eax, eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 0x2a
push eax
call fcn.00415a80
add esp, 4
test al, al
jne 0x413256
cmp dword [ebp - 0x58], 8
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x5c], 0
cmovae eax, dword [ebp - 0x6c]
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x2c]
call fcn.00415b40
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
jne 0x413422
xorps xmm0, xmm0
lea ecx, [ebp - 0x3c]
movlpd qword [ebp - 0x3c], xmm0
call fcn.00453da0
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x2b
call fcn.00453dc0
mov edi, dword [ebp - 0x18]
mov eax, dword [edi]
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x5817c0]
mov ecx, edi
call esi
xorps xmm0, xmm0
lea ecx, [ebp - 0x20]
mov esi, eax
movlpd qword [ebp - 0x20], xmm0
call fcn.00454000
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x2c
mov dword [0x5f17a8], esi
call fcn.00454030
test bl, bl
je 0x4132f6
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x4132f6
mov ebx, dword [0x5f3910]
lea esi, [ebx + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test edi, edi
jne 0x4132e4
mov byte [ebp - 4], 0x2d
jmp 0x4132eb
mov dword [ebx + 0x3c], edi
mov byte [ebp - 4], 0x2e
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 4], 0x2c
cmp dword [ebp - 0x2c], 0
je 0x413308
lea ecx, [ebp - 0x2c]
call fcn.004545f0
mov ebx, eax
jmp 0x41330a
xor ebx, ebx
mov edi, dword [0x5f3910]
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [edi + 0x2c], ebx
push esi
mov byte [ebp - 4], 0x2f
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebp - 0x75], 0
mov byte [ebp - 4], 0x2c
je 0x413350
push 0x58c3e4
push dword [ebp + 0xc]
mov ecx, 0x5f16e8
mov byte [0x5f16e5], 1
push 0x5ed040
call fcn.00454680
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x5817c0]
mov ecx, ebx
call esi
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x413375
lea ecx, [ebp - 0x2c]
call fcn.00474fa0
mov dword [esi], eax
mov edi, dword [0x5f3910]
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov bl, byte [edi + 0x40]
push esi
mov byte [ebp - 4], 0x30
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 4], 0x2c
test bl, bl
jne 0x413409
call fcn.00414d40
test eax, eax
jg 0x4133fe
call fcn.00414d40
test eax, eax
jg 0x4133e4
push 0
push 0x423
push 0x5859d8
lea ecx, [ebp - 0x150]
call fcn.00496330
mov ebx, dword [ebp - 0x80]
add eax, 8
push str.Handshake_with_Sandbox_Process_Failed
or ebx, 4
mov byte [ebp - 4], 0x31
push eax
mov dword [ebp - 0x78], ebx
call fcn.0047a5e0
add esp, 8
jmp 0x4133e7
mov ebx, dword [ebp - 0x80]
mov dword [ebp - 4], 0x2c
test bl, 4
je 0x4133fe
lea ecx, [ebp - 0x150]
call fcn.004965b0
mov dword [ebp - 0x14], 0x33
mov byte [ebp - 0x72], 1
lea ecx, [ebp - 0x20]
call fcn.00475080
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x2a
call fcn.00475130
jmp 0x4134d6
call fcn.00414d40
test eax, eax
jg 0x4134d2
call fcn.00414d40
test eax, eax
jg 0x4134a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x54]
push 0x5855d4
push eax
call fcn.004364d0
add esp, 0xc
mov esi, eax
mov ebx, dword [ebp - 0x80]
lea ecx, [ebp - 0x150]
push 0
push 0x42a
or ebx, 8
mov byte [ebp - 4], 0x32
push 0x585a28
mov dword [ebp - 0x78], ebx
call fcn.00496330
add eax, 8
mov dword [ebp - 4], 0x33
push str.Sandbox_Process_Initialization_Failed___error:
or ebx, 0x10
push eax
mov dword [ebp - 0x78], ebx
call fcn.0047a5e0
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x41349c
mov esi, dword [esi]
push esi
push eax
call fcn.004968a0
add esp, 8
jmp 0x4134ab
mov ebx, dword [ebp - 0x80]
test bl, 0x10
je 0x4134be
lea ecx, [ebp - 0x150]
and ebx, 0xffffffef
call fcn.004965b0
mov dword [ebp - 4], 0x2a
test bl, 8
je 0x4134d2
lea ecx, [ebp - 0x54]
call fcn.0040a280
mov byte [ebp - 0x72], 1
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x4134e1
mov ebx, dword [esi]
jmp 0x4134e3
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebp - 0x72], 0
mov dword [ebp - 0x1c], eax
je 0x4137cc
cmp byte [0x5f17f0], 0
mov cl, byte [ebp - 0x71]
mov al, byte [ebp - 0x79]
je 0x413602
test cl, cl
jne 0x413602
test al, al
jne 0x413602
lea eax, [ebp - 0x78]
mov dword [ebp - 0x78], 0
push eax
call fcn.00482c20
add esp, 4
test al, al
je 0x4135fc
mov esi, dword [ebp - 0x78]
xor edi, edi
cmp esi, 2
jne 0x4135e6
mov ecx, dword [0x5f3910]
push edi
push edi
push 0x47fec0
push 0x7d
call fcn.00481130
mov edi, eax
cmp edi, esi
jne 0x4135eb
push 0x20006
push 0x585530
xorps xmm0, xmm0
lea ecx, [ebp - 0x28]
push 0x80000001
movlpd qword [ebp - 0x28], xmm0
call fcn.0040c860
cmp dword [ebp - 0x28], 0
mov byte [ebp - 4], 0x34
je 0x413598
push 0
push 0x585588
lea ecx, [ebp - 0x28]
call fcn.00473a30
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x2a
call fcn.0040c8e0
cmp esi, 1
mov dword [ebp - 0x80], 6
mov byte [0x5f17f0], 0
sete byte [0x5f16e4]
mov dword [0x5f17f4], 0
call fcn.00484ef0
lea eax, [ebp - 0x78]
push eax
push str.iPMAppContainerLaunchFailureFallback
call fcn.00482800
add esp, 8
push 0
push dword [ebp - 0x70]
jmp 0x413731
cmp esi, 1
je 0x4135a4
push 0
push dword [ebp - 0x70]
mov dword [ebp - 0x80], 5
jmp 0x413731
mov al, byte [ebp - 0x79]
mov cl, byte [ebp - 0x71]
cmp byte [ebp - 0x70], 0
jne 0x4137b2
test cl, cl
jne 0x4137cc
test al, al
jne 0x4137cc
mov dword [ebp - 0x80], 4
test esi, esi
je 0x41362d
mov dword [esi], 1
xor eax, eax
xor edi, edi
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x78]
push eax
push 1
push edi
push str.bPMSandboxFallback
call fcn.0040cf80
add esp, 0x10
movzx eax, ax
cmp word [ebp - 0x78], di
je 0x413668
lea eax, [ebp - 0x78]
push eax
push edi
push edi
push str.bPMSandboxFallback
call fcn.0040cf80
add esp, 0x10
movzx eax, ax
test ax, ax
je 0x413726
push 0x80000000
push 0x5855e0
xorps xmm0, xmm0
lea ecx, [ebp - 0x3c]
xor esi, esi
movlpd qword [ebp - 0x3c], xmm0
push 0x80000002
mov dword [ebp - 0x24], esi
call fcn.0040c860
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 0x35
push eax
push 0x5857cc
lea ecx, [ebp - 0x3c]
call fcn.004104f0
test eax, eax
mov byte [ebp - 4], 0x2a
lea ecx, [ebp - 0x3c]
cmove esi, dword [ebp - 0x24]
call fcn.0040c8e0
test esi, esi
je 0x413702
xor eax, eax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x78]
push eax
push 1
push 1
push str.bAllowFallbackForAdminEnforcedSandbox
call fcn.0040cf80
add esp, 0x10
movzx eax, ax
cmp word [ebp - 0x78], 0
je 0x4136fd
lea eax, [ebp - 0x78]
push eax
push 0
push 1
push str.bAllowFallbackForAdminEnforcedSandbox
call fcn.0040cf80
add esp, 0x10
movzx eax, ax
test ax, ax
je 0x413726
mov ecx, dword [0x5f3910]
push 0
push 0
push 0x47fec0
push 0x6b
call fcn.00481130
mov edi, eax
mov ecx, edi
sub ecx, 2
je 0x413754
sub ecx, 1
jne 0x41372d
mov dword [ebp - 0x80], 5
push 0
push 0
movzx eax, byte [0x5f17f0]
push edi
push dword [ebp - 0x14]
push dword [ebp - 0xa0]
push dword [ebp - 0x1c]
push ebx
push eax
call fcn.00482970
mov ebx, dword [ebp - 0x80]
add esp, 0x20
jmp 0x4137ce
lea eax, [ebp - 0x70]
mov dword [ebp - 0x70], 0
push eax
push 0x585a78
push 0x80000001
mov dword [ebp - 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x41372d
push 4
lea eax, [ebp - 0x18]
push eax
push 4
push 0
push 0x585ad0
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [0x5ed03c]
test eax, eax
push dword [ebp - 0x70]
cmove ecx, dword [ebp - 0x18]
mov dword [0x5ed03c], ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41372d
cmp byte [ebp - 0xa0], 0
je 0x4137cc
mov ebx, 5
test esi, esi
je 0x4137ce
mov dword [esi], 0xff
jmp 0x4137ce
xor ebx, ebx
cmp byte [ebp - 0x81], 0
je 0x41380d
push 0x20006
push 0x585af0
push 0x80000001
lea ecx, [ebp - 0x34]
call fcn.004153a0
test eax, eax
jne 0x41380d
push dword [0x5ed03c]
lea ecx, [ebp - 0x34]
push 0x585b48
call fcn.00473a30
lea ecx, [ebp - 0x34]
call fcn.00415420
cmp byte [ebp - 0x82], 0
je 0x41383b
cmp ebx, 4
jne 0x41383b
cmp dword [ebp - 0x5c], 0
je 0x413833
cmp dword [ebp - 0x58], 8
lea eax, [ebp - 0x6c]
cmovae eax, dword [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
mov edi, dword [0x5f3910]
mov eax, dword [edi]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x5817c0]
mov ecx, edi
call esi
mov eax, dword [ebp - 0x58]
mov byte [ebp - 4], 0x36
cmp eax, 8
jb 0x41386b
inc eax
lea ecx, [ebp - 0x6c]
push eax
push dword [ebp - 0x6c]
call fcn.0040a2e0
xor eax, eax
mov dword [ebp - 0x5c], 0
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
call fcn.0040c8e0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401682
mov esp, ebp
pop ebp
ret