Function at 0x412970
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x160
mov esi, esp
mov dword [esi + 0x148], ebp
mov dword [esi + 0x14c], esp
mov dword [esi + 0x158], 0xffffffff
mov dword [esi + 0x154], 0x4c17f0
lea eax, [esi + 0x150]
mov ecx, dword fs:[0]
mov dword [esi + 0x150], ecx
mov dword fs:[0], eax
call fcn.00413900
movzx ecx, al
test al, al
mov dword [0x6c8c90], ecx
je 0x412a37
mov edi, dword [0x6d1ebc]
lea ebx, [edi + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [edi + 0x67]
mov dword [esi + 0x158], 0
mov byte [esi + 0x10], al
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [esi + 0x10], 0
je 0x412a37
mov dword [esi + 0x158], 0xffffffff
push 0
push 0
push 0
push 0x4367e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, dword [0x6d1f60]
mov dword [esi + 0x10], eax
mov eax, dword [ebx]
mov edi, dword [eax + 0x1c]
mov ecx, edi
call dword [0x64689c]
mov ecx, ebx
call edi
mov ecx, dword [esi + 0x10]
mov dword [eax], ecx
mov ebx, dword [ebp + 8]
mov ecx, 2
test ebx, ebx
je 0x413282
cmp dword [ebp + 0x18], 0
je 0x413282
push str.type
call fcn.006289d0
add esp, 4
lea edi, [esi + 0x48]
mov dword [esi + 0x158], 0xffffffff
mov ecx, ebx
push eax
push str.type
push edi
call fcn.00408470
push str.renderer
call fcn.006289d0
add esp, 4
mov ebx, dword [esi + 0x58]
cmp ebx, eax
jne 0x412aae
cmp dword [esi + 0x5c], 0xf
jbe 0x412a98
mov ecx, dword [esi + 0x48]
jmp 0x412a9b
lea ecx, [esi + 0x48]
push eax
push str.renderer
push ecx
call fcn.005d5792
add esp, 0xc
test eax, eax
je 0x412aed
push str.compute_only_renderer
call fcn.006289d0
add esp, 4
mov ecx, 2
cmp ebx, eax
jne 0x413246
cmp dword [esi + 0x5c], 0xf
jbe 0x412ad1
mov edi, dword [esi + 0x48]
push ebx
push str.compute_only_renderer
push edi
call fcn.005d5792
add esp, 0xc
test eax, eax
mov ecx, 2
jne 0x413246
mov edi, dword [0x6d1f60]
mov eax, dword [edi]
mov ebx, dword [eax + 4]
mov ecx, ebx
call dword [0x64689c]
lea eax, [esi + 0x20]
mov dword [esi + 0x158], 9
mov ecx, edi
push eax
call ebx
mov dword [esi + 0x158], 0xa
push 8
call fcn.005d0220
add esp, 4
mov dword [esi + 0x10], eax
mov dword [esi + 0xc], esp
push eax
mov edi, dword [esi + 0x20]
mov eax, esp
test edi, edi
mov dword [eax], edi
je 0x412b5c
mov eax, dword [edi]
mov ebx, dword [eax]
mov dword [esi + 0x158], 0xffffffff
mov ecx, ebx
call dword [0x64689c]
mov ecx, edi
mov dword [esi + 0x158], 0x19
call ebx
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x158], 0x19
call fcn.004174e0
mov esp, dword [esi + 0xc]
cmp dword [0x6c8c90], 0
je 0x412c57
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x158], 0xb
call fcn.004177c0
mov edi, dword [0x6d1f60]
mov eax, dword [edi]
mov ebx, dword [eax + 0x28]
mov dword [esi + 0x158], 0xffffffff
mov ecx, ebx
call dword [0x64689c]
mov dword [esi + 0x158], 0xb
mov ecx, edi
push 0
call ebx
push 0xc
call fcn.005d0220
add esp, 4
mov edi, dword [esi + 0x20]
mov dword [esi + 0xc], eax
test edi, edi
mov dword [eax], edi
je 0x412bf7
mov eax, dword [edi]
mov ebx, dword [eax]
mov dword [esi + 0x158], 0xffffffff
mov ecx, ebx
call dword [0x64689c]
mov ecx, edi
mov dword [esi + 0x158], 0xc
call ebx
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x158], 0xb
mov dword [ecx + 4], eax
mov eax, dword [esi + 0x10]
mov dword [ecx + 8], eax
push 0
push 0
push ecx
push 0x43e9c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xc], eax
mov edi, dword [0x6d1f60]
mov eax, dword [edi]
mov ebx, dword [eax + 0x24]
mov dword [esi + 0x158], 0xffffffff
mov ecx, ebx
call dword [0x64689c]
mov ecx, edi
mov dword [esi + 0x158], 0xb
call ebx
mov ecx, dword [esi + 0xc]
mov dword [eax], ecx
push str.compute_only_renderer
call fcn.006289d0
add esp, 4
cmp dword [esi + 0x58], eax
jne 0x412c74
cmp dword [esi + 0x5c], 0xf
jbe 0x412c7c
mov ecx, dword [esi + 0x48]
jmp 0x412c7f
mov dword [esi + 0xc], esp
push eax
mov ecx, esp
jmp 0x412c98
lea ecx, [esi + 0x48]
push eax
push str.compute_only_renderer
push ecx
call fcn.005d5792
add esp, 0xc
mov dword [esi + 0xc], esp
push eax
mov ecx, esp
test eax, eax
je 0x412cf6
mov edi, dword [esi + 0x20]
test edi, edi
mov dword [ecx], edi
je 0x412cc5
mov eax, dword [edi]
mov ebx, dword [eax]
mov dword [esi + 0x158], 0xffffffff
mov ecx, ebx
call dword [0x64689c]
mov ecx, edi
mov dword [esi + 0x158], 0xd
call ebx
mov dword [esi + 0x158], 0xd
call fcn.0042ed00
add esp, 4
mov esp, dword [esi + 0xc]
mov ecx, 0x44
test al, al
je 0x4131d6
cmp dword [0x6c8c90], 0
jne 0x412df6
jmp 0x412d45
mov edi, dword [esi + 0x20]
test edi, edi
mov dword [ecx], edi
je 0x412d23
mov eax, dword [edi]
mov ebx, dword [eax]
mov dword [esi + 0x158], 0xffffffff
mov ecx, ebx
call dword [0x64689c]
mov ecx, edi
mov dword [esi + 0x158], 0xd
call ebx
mov dword [esi + 0x158], 0xd
call fcn.004c1160
add esp, 4
mov esp, dword [esi + 0xc]
cmp dword [0x6c8c90], 0
jne 0x412df6
mov ecx, dword [esi + 0x10]
call fcn.004177c0
mov ebx, dword [esi + 0x20]
mov eax, esp
test ebx, ebx
je 0x412da6
mov ecx, dword [ebx]
mov dword [esi + 0x1c], eax
mov edi, dword [ecx]
mov dword [esi + 0x158], 0xffffffff
mov ecx, edi
call dword [0x64689c]
mov ecx, ebx
mov dword [esi + 0x158], 0xd
mov dword [esi + 0xc], ebx
call edi
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x158], 2
call fcn.0043ed00
test al, al
je 0x412dad
mov ecx, dword [esi + 0x10]
push dword [ebp + 8]
call fcn.0044c400
mov dword [esi + 0x24], eax
jmp 0x412db4
mov esp, eax
jmp 0x413298
mov dword [esi + 0x24], 0
mov ebx, dword [esi + 0xc]
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov dword [esi + 0x158], 0xffffffff
mov ecx, edi
call dword [0x64689c]
mov ecx, ebx
mov dword [esi + 0x158], 1
call edi
mov esp, dword [esi + 0x1c]
cmp byte [esi + 0x24], 0
je 0x413298
cmp dword [0x6c8c90], 0
je 0x413398
mov eax, dword [esi + 0x20]
mov dword [esi + 0x14], 0
mov dword [esi + 0x158], 0x10
mov dword [esi + 0xc], eax
push 8
call fcn.005d0220
add esp, 4
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x158], 0x12
mov dword [eax], ecx
lea ecx, [esi + 0x8c]
mov dword [eax + 4], 0x451080
push ecx
push 0
mov dword [esi + 0xc], eax
push eax
push 0x450fd0
push 0
push 0
call fcn.005e0413
add esp, 0x18
test eax, eax
mov dword [esi + 0x88], eax
je 0x4133bf
mov ecx, dword [esi + 0x8c]
mov dword [esi + 0x44], eax
mov dword [esi + 0xc], ecx
mov eax, dword [0x6d1f60]
xorps xmm0, xmm0
mov dword [esi + 0x28], esp
mov dword [esi + 0x6c], 0
mov dword [esi + 0x68], 0
movaps xmmword [esi + 0x70], xmm0
mov dword [esi + 0x24], eax
push eax
sub esp, 0x14
mov edi, dword [esi + 0x20]
mov eax, esp
mov dword [esi + 0x1c], eax
test edi, edi
mov dword [eax + 8], edi
je 0x412ec2
mov eax, dword [edi]
mov ebx, dword [eax]
mov dword [esi + 0x158], 0xffffffff
mov ecx, ebx
call dword [0x64689c]
mov eax, dword [esi + 0xc]
mov ecx, edi
mov dword [esi + 0x158], 0x10
mov dword [esi + 0x14], eax
call ebx
mov ecx, dword [ebp + 8]
lea edx, [esi + 0x88]
mov byte [esi + 0x1b], 1
mov dword [esi + 0x158], 0x13
push edx
call fcn.00409b10
mov eax, dword [esi + 0x88]
mov ecx, dword [ebp + 8]
mov byte [esi + 0x1a], 1
mov dword [esi + 0x158], 0x14
mov dword [esi + 0x64], eax
mov eax, dword [esi + 0x9c]
mov dword [esi + 0x60], eax
lea eax, [esi + 0x2c]
push eax
call fcn.00412800
cmp dword [esi + 0x60], 7
lea eax, [esi + 0x88]
lea edx, [esi + 0x2c]
cmova eax, dword [esi + 0x64]
cmp dword [esi + 0x40], 7
jbe 0x412f25
mov edx, dword [esi + 0x2c]
mov ecx, dword [esi + 0x1c]
mov ebx, dword [esi + 0x24]
mov dword [ecx], edx
mov dword [ecx + 4], eax
lea eax, [esi + 0x6c]
mov dword [ecx + 0xc], eax
lea eax, [esi + 0x68]
mov dword [ecx + 0x10], eax
lea eax, [esi + 0x70]
mov dword [ecx + 0x14], eax
mov eax, dword [ebx]
mov edi, dword [eax + 8]
mov dword [esi + 0x158], 0xffffffff
mov ecx, edi
call dword [0x64689c]
mov ecx, ebx
mov dword [esi + 0x158], 0x15
call edi
mov esp, dword [esi + 0x28]
lea ecx, [esi + 0x2c]
call fcn.00405be0
mov ecx, dword [esi + 0x9c]
cmp ecx, 8
jb 0x412fb3
mov eax, dword [esi + 0x88]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x412fa9
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x413410
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
cmp dword [0x6c8c90], 0
je 0x41308e
cmp dword [esi + 0xc], 0
je 0x4133d3
mov dword [esi + 0x14], 1
mov dword [esi + 0x158], 0x10
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, dword [esi + 0xc]
cmp ecx, eax
je 0x4133ee
mov dword [esi + 0x14], 1
push 0
push ecx
push dword [esi + 0x44]
call fcn.005e1561
add esp, 0xc
test eax, eax
jne 0x4133ff
xor eax, eax
cmp dword [0x6cef14], 0
jne 0x413091
mov dword [esi + 0x14], 0
push 4
call fcn.005d0220
add esp, 4
lea ecx, [esi + 0x8c]
mov dword [eax], 0x473bc0
mov dword [esi + 0x158], 0x11
push ecx
push 0
mov dword [esi + 0xc], eax
push eax
push 0x5e2160
push 0
push 0
call fcn.005e0413
add esp, 0x18
test eax, eax
mov dword [esi + 0x88], eax
je 0x41341f
mov ecx, dword [esi + 0x8c]
test ecx, ecx
je 0x413433
mov dword [esi + 0x158], 0x16
push ecx
push eax
call fcn.005e15ae
add esp, 8
test eax, eax
jne 0x413447
xor eax, eax
jmp 0x413091
mov eax, dword [esi + 0xc]
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], eax
lea eax, [esi + 0x70]
mov dword [esi + 0x158], 0x10
lea ecx, [esi + 0x88]
push eax
call fcn.0043df50
mov eax, dword [0x6d1ebc]
test eax, eax
je 0x41315b
mov dword [esi + 0x1c], eax
add eax, 8
mov dword [esi + 0x158], 0x17
mov dword [esi + 0x24], eax
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x1c]
mov al, byte [eax + 0x63]
mov dword [esi + 0x158], 5
mov byte [esi + 0x1c], al
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [esi + 0x1c], 0
je 0x413113
mov dword [esi + 0x158], 0x17
call fcn.00472fb0
push 0x658578
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
mov eax, dword [0x6d1ebc]
mov dword [esi + 0x158], 0x17
test eax, eax
je 0x41315b
mov ecx, dword [esi + 0x90]
mov dword [esi + 0x1c], eax
add eax, 8
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ecx
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x28]
mov dword [eax + 0x70], ecx
mov dword [esi + 0x158], 6
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x90]
mov dword [esi + 0x158], 0x17
push eax
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
call fcn.00473020
push edx
push eax
call fcn.004185a0
add esp, 8
push dword [esi + 0x8c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
lea ecx, [esi + 0x88]
call fcn.00473100
lea ecx, [esi + 0x2c]
push eax
call fcn.004117c0
mov ecx, dword [ebp + 0x18]
lea eax, [esi + 0x2c]
mov dword [esi + 0x158], 0x18
push eax
call fcn.00473130
lea ecx, [esi + 0x2c]
call fcn.00436760
lea ecx, [esi + 0x88]
call fcn.0043e4b0
xor ecx, ecx
cmp dword [esi + 0xc], 0
jne 0x4133ba
mov dword [esi + 0xc], ecx
call fcn.004731e0
mov eax, dword [esi + 0x10]
mov edi, dword [eax]
test edi, edi
je 0x41320c
mov eax, dword [edi]
mov ebx, dword [eax + 4]
mov dword [esi + 0x158], 0xffffffff
mov ecx, ebx
call dword [0x64689c]
mov ecx, edi
mov dword [esi + 0x158], 7
call ebx
push dword [esi + 0x10]
call fcn.005d31ac
add esp, 4
mov edi, dword [esi + 0x20]
test edi, edi
je 0x413243
mov eax, dword [edi]
mov ebx, dword [eax + 4]
mov dword [esi + 0x158], 0xffffffff
mov ecx, ebx
call dword [0x64689c]
mov ecx, edi
mov dword [esi + 0x158], 8
call ebx
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x5c]
cmp eax, 0x10
jb 0x413282
mov ebx, ecx
mov ecx, dword [esi + 0x48]
lea edx, [eax + 1]
cmp edx, 0x1000
jb 0x413276
mov edi, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edi
cmp ecx, 0x20
jae 0x4133ab
add eax, 0x24
mov ecx, edi
mov edx, eax
push edx
push ecx
call fcn.005d319e
add esp, 8
mov ecx, ebx
mov eax, dword [esi + 0x150]
mov dword fs:[0], eax
mov eax, ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esi + 0x158], 0xd
push 0
call fcn.00410ec0
add esp, 4
mov ecx, 0x41
test al, al
je 0x4131d6
push 0
call fcn.00410ec0
add esp, 4
test al, al
je 0x413384
lea ecx, [esi + 0x88]
push 0
push 0x5f2
push str..._services_service_manager_sandboxwin_sandbox_win.cc
call fcn.0041f9f0
lea eax, [esi + 0x98]
mov dword [esi + 0x158], 0xe
push str.policy_error:
push eax
call fcn.005df800
add esp, 8
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esi + 0x2c]
push eax
push str.0x_X
push ecx
call fcn.0043b100
add esp, 0xc
lea eax, [esi + 0x2c]
mov dword [esi + 0x158], 0xf
push eax
push dword [esi + 0xc]
call fcn.004a29e0
add esp, 8
mov ecx, dword [esi + 0x40]
cmp ecx, 8
jb 0x41336f
mov eax, dword [esi + 0x2c]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x413365
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x413450
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
lea ecx, [esi + 0x88]
call fcn.00424810
mov ecx, 0x41
jmp 0x4131d6
push 0
call fcn.00410ec0
add esp, 4
mov ecx, 0x41
jmp 0x4131d6
mov dword [esi + 0x44], 0
mov dword [esi + 0xc], 0
jmp 0x412e65
mov dword [esi + 0x158], 0x1a
call fcn.006207e0
call fcn.004c1510
mov dword [esi + 0x8c], 0
push 6
call fcn.00606efa
add esp, 4
mov dword [esi + 0x14], 0
mov dword [esi + 0x158], 0x10
push 1
call fcn.00606efa
add esp, 4
mov dword [esi + 0x14], 1
push 5
call fcn.00606efa
add esp, 4
mov dword [esi + 0x14], 1
push 2
call fcn.00606efa
add esp, 4
mov dword [esi + 0x158], 4
call fcn.006207e0
mov dword [esi + 0x8c], 0
push 6
call fcn.00606efa
add esp, 4
mov dword [esi + 0x158], 0x16
push 1
call fcn.00606efa
add esp, 4
push eax
call fcn.00606ecd
add esp, 4
mov dword [esi + 0x158], 3
call fcn.006207e0
nop
push ebp
sub esp, 0x18
lea esi, [ebp - 0x15c]
mov ebp, dword [esi + 0x148]
call fcn.0061de80
nop word cs:[eax + eax]
nop
push ebp
sub esp, 0x18
lea esi, [ebp - 0x15c]
mov ebp, dword [esi + 0x148]
push ebp
sub esp, 0x18
lea esi, [ebp - 0x15c]
mov ebp, dword [esi + 0x148]
call fcn.0061de80
nop word cs:[eax + eax]
nop
push ebp
sub esp, 0x18
lea esi, [ebp - 0x15c]
mov ebp, dword [esi + 0x148]
mov ecx, dword [esi + 0x40]
cmp ecx, 8
jb 0x4134f7
mov eax, dword [esi + 0x2c]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x4134ed
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x413510
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 7
mov word [esi + 0x2c], 0
add esp, 0x18
pop ebp
ret
call fcn.006207e0
nop word cs:[eax + eax]
nop
push ebp
sub esp, 0x18
lea esi, [ebp - 0x15c]
mov ebp, dword [esi + 0x148]
lea ecx, [esi + 0x88]
call fcn.00424810
add esp, 0x18
pop ebp
ret