Function at 0x495f07
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1ec
mov eax, dword [0x51a0a0]
xor eax, esp
mov dword [esp + 0x1e8], eax
push ebx
xor ebx, ebx
lea edx, [esp + 0x180]
mov dword [esp + 0x10], ebx
xor eax, eax
mov ecx, dword [ebp + 8]
and dword [esp + 0x190], ebx
push esi
push edi
mov byte [esp + 0x1c], bl
mov dword [esp + 0x19c], 7
mov word [esp + 0x188], ax
call fcn.004ba427
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x6c]
mov esi, dword [eax + 0x68]
cmp esi, edi
je 0x495fb3
push esi
lea ecx, [esp + 0x14]
call fcn.0041ada0
push dword [esp + 0x14]
lea ecx, [esp + 0x174]
push dword [esp + 0x14]
call fcn.00437b20
pop ecx
pop ecx
lea edx, [esp + 0x188]
lea ecx, [esp + 0x170]
call fcn.004ba427
push 0
push 1
lea ecx, [esp + 0x178]
call fcn.0041b875
add esi, 0x18
cmp esi, edi
jne 0x495f66
mov eax, dword [ebp + 8]
xor edi, edi
cmp dword [eax + 0x28], edi
je 0x496018
push str.database
lea ecx, [esp + 0x174]
call fcn.0041aee6
mov eax, dword [ebp + 8]
lea edx, [esp + 0x170]
add eax, 0x18
lea ecx, [esp + 0x1a0]
push eax
call fcn.00495c7b
pop ecx
lea edx, [esp + 0x188]
mov ecx, eax
call fcn.004ba427
xor esi, esi
lea ecx, [esp + 0x1a0]
push edi
inc esi
push esi
call fcn.0041b875
push edi
push esi
lea ecx, [esp + 0x178]
call fcn.0041baed
mov eax, dword [ebp + 8]
jmp 0x49601b
xor esi, esi
inc esi
cmp dword [eax + 0x40], edi
je 0x496079
push str.metrics_dir
lea ecx, [esp + 0x174]
call fcn.0041aee6
mov eax, dword [ebp + 8]
lea edx, [esp + 0x170]
add eax, 0x30
lea ecx, [esp + 0x1a0]
push eax
call fcn.00495c7b
pop ecx
lea edx, [esp + 0x188]
mov ecx, eax
call fcn.004ba427
push edi
push esi
lea ecx, [esp + 0x1a8]
call fcn.0041b875
push edi
push esi
lea ecx, [esp + 0x178]
call fcn.0041baed
mov eax, dword [ebp + 8]
cmp dword [eax + 0x58], edi
je 0x496110
push 0x50bce0
lea ecx, [esp + 0x15c]
call fcn.0041aee6
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x10]
add eax, 0x48
push eax
call fcn.0041ada0
push dword [esp + 0x14]
lea ecx, [esp + 0x174]
push dword [esp + 0x14]
call fcn.00437b20
lea eax, [esp + 0x178]
push eax
lea edx, [esp + 0x164]
lea ecx, [esp + 0x1ac]
call fcn.00495c7b
add esp, 0xc
lea edx, [esp + 0x188]
mov ecx, eax
call fcn.004ba427
push edi
push esi
lea ecx, [esp + 0x1a8]
call fcn.0041b875
push edi
push esi
lea ecx, [esp + 0x178]
call fcn.0041b875
push edi
push esi
lea ecx, [esp + 0x160]
call fcn.0041baed
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x60]
mov eax, dword [esi]
mov dword [esp + 0xc], eax
cmp eax, esi
je 0x496272
xor ebx, ebx
inc ebx
push str.annotation
lea ecx, [esp + 0x1a4]
lea edi, [eax + 0x10]
call fcn.0041aee6
mov eax, dword [edi + 0x10]
lea ecx, [esp + 0x158]
and dword [esp + 0x168], 0
inc eax
push eax
mov dword [esp + 0x170], 0xf
mov byte [esp + 0x15c], 0
call fcn.004380d0
push 0xffffffffffffffff
push 0
push edi
lea ecx, [esp + 0x164]
call fcn.0041bd9e
push 0x3d
push ebx
lea ecx, [esp + 0x160]
call fcn.0041ca57
push 0xffffffffffffffff
push 0
lea eax, [edi + 0x18]
push eax
lea ecx, [esp + 0x164]
call fcn.0041bd9e
and dword [esp + 0x180], 0
lea ecx, [esp + 0x170]
push eax
mov dword [esp + 0x188], 0xf
mov byte [esp + 0x174], 0
call fcn.0041be40
lea eax, [esp + 0x170]
push eax
lea ecx, [esp + 0x14]
call fcn.0041ada0
push dword [esp + 0x14]
lea ecx, [esp + 0x1bc]
push dword [esp + 0x14]
call fcn.00437b20
lea eax, [esp + 0x1c0]
push eax
lea edx, [esp + 0x1ac]
lea ecx, [esp + 0x1e8]
call fcn.00495c7b
add esp, 0xc
lea edx, [esp + 0x188]
mov ecx, eax
call fcn.004ba427
xor edi, edi
lea ecx, [esp + 0x1dc]
push edi
push ebx
call fcn.0041b875
push edi
push ebx
lea ecx, [esp + 0x1c0]
call fcn.0041b875
push edi
push ebx
lea ecx, [esp + 0x178]
call fcn.0041baed
push edi
push ebx
lea ecx, [esp + 0x160]
call fcn.0041baed
push edi
push ebx
lea ecx, [esp + 0x1a8]
call fcn.0041baed
lea ecx, [esp + 0xc]
call fcn.0043b2d0
mov eax, dword [esp + 0xc]
cmp eax, esi
jne 0x496124
mov ebx, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
xor edi, edi
inc edi
push edi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4962eb
push 2
pop ecx
call fcn.0044bc30
test al, al
je 0x4962d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
push 0x180
push str..._.._third_party_crashpad_crashpad_client_crashpad_client_win.cc
lea ecx, [esp + 0x8c]
mov dword [esp + 0x84], eax
call fcn.0044bca0
mov edx, 0x50be88
lea ecx, [esp + 0x88]
call fcn.0041cec3
mov ebx, edi
test bl, 1
je 0x496906
lea ecx, [esp + 0x78]
call fcn.0044c710
jmp 0x496906
mov ecx, dword [ebp + 8]
xor edx, edx
push edx
push 0x51dd84
push edx
push 0x51dd9c
push edx
push 0x51ddac
push eax
push dword [ecx + 0x8c]
lea eax, [esp + 0x1c0]
push dword [0x51aaf4]
push dword [0x51aaf0]
push dword [0x51aaf8]
push str.0x_x_0x_x_0x_x_0x_x_0x_x_0x_I64x_0x_I64x_0x_I64x
push eax
call fcn.00449590
add esp, 0x34
lea eax, [esp + 0x1a0]
lea ecx, [esp + 0x170]
push eax
push str.__initial_client_data
call fcn.0041aee6
mov edx, eax
lea ecx, [esp + 0x1bc]
call fcn.0044d040
push ecx
mov ecx, esp
push eax
call fcn.0041ada0
lea ecx, [esp + 0x1e4]
call fcn.00437c10
pop ecx
pop ecx
lea edx, [esp + 0x188]
mov ecx, eax
call fcn.004ba427
xor esi, esi
lea ecx, [esp + 0x1dc]
push esi
push edi
call fcn.0041b875
push esi
push edi
lea ecx, [esp + 0x1c0]
call fcn.0041baed
push esi
push edi
lea ecx, [esp + 0x178]
call fcn.0041baed
push esi
push edi
lea ecx, [esp + 0x1a8]
call fcn.0041baed
push 0x48
lea eax, [esp + 0x24]
push esi
push eax
call fcn.004cda10
add esp, 0xc
mov dword [esp + 0x4c], 0x100
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff5
mov dword [esp + 0x5c], eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff4
mov dword [esp + 0x60], eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esp + 0x60], eax
xor eax, eax
mov dword [esp + 0x158], eax
mov dword [esp + 0x15c], eax
mov dword [esp + 0x160], eax
mov dword [esp + 0xc], eax
mov eax, dword fs:[0x2c]
mov edi, dword [eax]
mov eax, dword [0x51efe0]
cmp eax, dword [edi + 0x18]
jle 0x496459
push 0x51efe0
call fcn.004cb9db
mov eax, dword [0x51efe0]
pop ecx
cmp eax, 0xffffffff
jne 0x496459
push ecx
mov edx, str.::InitializeProcThreadAttributeList
mov ecx, str.kernel32.dll
call fcn.00487e38
mov dword [0x51efe4], eax
mov dword [esp], 0x51efe0
call fcn.004cb99c
pop ecx
mov eax, dword [0x51eff0]
cmp eax, dword [edi + 0x18]
jle 0x4964a9
mov edi, 0x51eff0
push edi
call fcn.004cb9db
mov eax, dword [0x51eff0]
pop ecx
cmp eax, 0xffffffff
jne 0x4964a9
cmp dword [0x51efe4], esi
je 0x49649c
push ecx
mov edx, str.::UpdateProcThreadAttribute
mov ecx, str.kernel32.dll
call fcn.00487e38
pop ecx
mov dword [0x51efec], eax
jmp 0x4964a2
and dword [0x51efec], esi
push edi
call fcn.004cb99c
pop ecx
mov eax, dword [0x51efe4]
test eax, eax
je 0x496728
cmp dword [0x51efec], esi
je 0x496728
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0x48
push ecx
push 0
xor esi, esi
mov edi, 0x80000
inc esi
push esi
push 0
call eax
test eax, eax
je 0x49652c
push 2
pop ecx
call fcn.0044bc30
test al, al
je 0x496515
push ecx
push 0x1b1
push str..._.._third_party_crashpad_crashpad_client_crashpad_client_win.cc
lea ecx, [esp + 0x84]
call fcn.0044bca0
mov edx, str.InitializeProcThreadAttributeList__size__succeeded__expected_failure
lea ecx, [eax + 8]
call fcn.0041cec3
push 2
pop ebx
test bl, 2
je 0x4968ee
lea ecx, [esp + 0x78]
call fcn.0044bd90
jmp 0x4968ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x496593
push 2
pop ecx
call fcn.0044bc30
test al, al
je 0x49657c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
push 0x1b5
push str..._.._third_party_crashpad_crashpad_client_crashpad_client_win.cc
lea ecx, [esp + 0x8c]
mov dword [esp + 0x84], eax
call fcn.0044bca0
mov edx, str.InitializeProcThreadAttributeList__size_
lea ecx, [esp + 0x88]
call fcn.0041cec3
push 4
pop ebx
test bl, 4
je 0x4968ee
lea ecx, [esp + 0x78]
call fcn.0044c710
jmp 0x4968ee
push dword [esp + 0x10]
call fcn.004cbd7f
pop ecx
push eax
lea ecx, [esp + 0x10]
call fcn.00496df3
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push 0
push esi
push eax
mov dword [esp + 0x74], eax
call dword [0x51efe4]
test eax, eax
jne 0x49660f
push 2
pop ecx
call fcn.0044bc30
test al, al
je 0x496607
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
push 0x1c0
push str..._.._third_party_crashpad_crashpad_client_crashpad_client_win.cc
lea ecx, [esp + 0x8c]
mov dword [esp + 0x84], eax
call fcn.0044bca0
mov edx, str.InitializeProcThreadAttributeList
lea ecx, [esp + 0x88]
call fcn.0041cec3
push 8
pop ebx
test bl, 8
jmp 0x49657f
mov esi, dword [esp + 0x64]
lea ecx, [esp + 0x158]
push 8
call fcn.0043adb0
push 0x51aaf8
lea ecx, [esp + 0x15c]
call fcn.00496c91
push 0x51aaf0
lea ecx, [esp + 0x15c]
call fcn.00496c91
push 0x51aaf4
lea ecx, [esp + 0x15c]
call fcn.00496c91
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x158]
add eax, 0x8c
push eax
call fcn.00496c91
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x15c]
call fcn.00496c91
mov edx, dword [esp + 0x58]
lea ecx, [esp + 0x158]
call fcn.00495d7c
mov edx, dword [esp + 0x5c]
lea ecx, [esp + 0x158]
call fcn.00495d7c
mov edx, dword [esp + 0x60]
lea ecx, [esp + 0x158]
call fcn.00495d7c
mov eax, dword [esp + 0x15c]
xor ecx, ecx
sub eax, dword [esp + 0x158]
push ecx
push ecx
and eax, 0xfffffffc
push eax
push dword [esp + 0x164]
push 0x20002
push ecx
push dword [esp + 0x7c]
call dword [0x51efec]
test eax, eax
jne 0x496732
push 2
pop ecx
call fcn.0044bc30
test al, al
je 0x496720
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
push 0x1da
push str..._.._third_party_crashpad_crashpad_client_crashpad_client_win.cc
lea ecx, [esp + 0x8c]
mov dword [esp + 0x84], eax
call fcn.0044bca0
mov edx, 0x504a00
lea ecx, [esp + 0x88]
call fcn.0041cec3
push 0x10
pop ebx
test bl, 0x10
jmp 0x4967b3
xor edi, edi
mov dword [esp + 0x20], 0x44
cmp dword [esp + 0x19c], 8
lea ecx, [esp + 0x188]
mov eax, dword [ebp + 8]
cmovae ecx, dword [esp + 0x188]
cmp dword [eax + 0x14], 8
jb 0x496754
mov eax, dword [eax]
lea edx, [esp + 0x68]
push edx
lea edx, [esp + 0x24]
push edx
xor edx, edx
push edx
push edx
push edi
xor edi, edi
inc edi
push edi
push edx
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4967c7
push 2
pop ecx
call fcn.0044bc30
test al, al
je 0x4967b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
push 0x1eb
push str..._.._third_party_crashpad_crashpad_client_crashpad_client_win.cc
lea ecx, [esp + 0x88]
call fcn.0044c6e0
mov edx, str.CreateProcess
lea ecx, [eax + 0x10]
call fcn.0041cec3
push 0x20
pop ebx
test bl, 0x20
je 0x4968e3
lea ecx, [esp + 0x78]
call fcn.0044c710
jmp 0x4968e3
push dword [esp + 0x6c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
mov edx, eax
call fcn.0044bc30
test al, al
je 0x496810
test edx, edx
jne 0x496810
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x1f0
push str..._.._third_party_crashpad_crashpad_client_crashpad_client_win.cc
lea ecx, [esp + 0x88]
call fcn.0044c6e0
mov edx, str.CloseHandle_thread
lea ecx, [eax + 0x10]
call fcn.0041cec3
push 0x40
pop ebx
test bl, 0x40
je 0x496821
lea ecx, [esp + 0x78]
and ebx, 0xffffffbf
call fcn.0044c710
push dword [esp + 0x68]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
mov edx, eax
call fcn.0044bc30
test al, al
je 0x49686d
test edx, edx
jne 0x49686d
or ebx, 0x80
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x1f3
push str..._.._third_party_crashpad_crashpad_client_crashpad_client_win.cc
lea ecx, [esp + 0x88]
call fcn.0044c6e0
mov edx, str.CloseHandle_process
lea ecx, [eax + 0x10]
call fcn.0041cec3
test bl, bl
jns 0x49687a
lea ecx, [esp + 0x78]
call fcn.0044c710
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x10]
or dword [esp + 0x10], 0xffffffff
push eax
lea ecx, [ecx + 0x8c]
call fcn.00496d50
xor eax, eax
lea edi, [esp + 0x134]
push 9
pop ecx
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 8]
lea edi, [esp + 0x1d0]
stosd dword es:[edi], eax
lea edx, [esp + 0x134]
mov dword [esp + 0x134], 2
lea ecx, [ecx + 0x74]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x1d0]
push eax
call fcn.004b9d67
pop ecx
mov ecx, dword [esp + 0x1c]
test al, al
push 1
movzx ecx, cl
pop eax
cmovne ecx, eax
mov dword [esp + 0x1c], ecx
test esi, esi
je 0x4968ee
mov ecx, esi
call fcn.00495d23
lea ecx, [esp + 0xc]
call fcn.00450e30
lea ecx, [esp + 0x158]
call fcn.00440a30
xor edi, edi
inc edi
lea ecx, [esp + 0x18]
call fcn.00496d3d
push 0
push edi
lea ecx, [esp + 0x190]
call fcn.0041b875
mov ebx, dword [esp + 0x1c]
xor ecx, ecx
test bl, bl
mov eax, 0x51dda8
sete cl
inc ecx
xchg dword [eax], ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x49693d
call fcn.00496d9d
mov ecx, dword [esp + 0x1f4]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004cb8a3
mov esp, ebp
pop ebp
ret