Function at 0x10001690
Capabilities:
Check if file exists
Create process on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x3d8
mov eax, dword [0x1004f430]
xor eax, esp
mov dword [esp + 0x3d4], eax
push esi
push edi
call fcn.10004730
mov dword [esp + 0x18], eax
test eax, eax
jne 0x100016d2
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x3d4]
xor ecx, esp
call fcn.10022a24
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x90]
push ecx
mov ecx, eax
call fcn.10004630
mov eax, dword [esp + 0x9c]
test eax, eax
je 0x100023b9
cmp dword [esp + 0x94], 0
je 0x100023b9
lea eax, [esp + 0x148]
push eax
mov dword [esp + method.CCritical.virtual_0], vtable.CCritical.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 8
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], vtable.CStringBufferW.0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
call fcn.10007b10
mov esi, dword [esp + 0x28]
push 8
push 0x100458a0
push dword [esp + 0x2c]
push esi
call fcn.10023dc5
mov edi, dword [esp + 0xac]
add esp, 0x10
mov eax, 8
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 9
test edi, edi
je 0x100017a5
movzx eax, word [esi + 0xe]
cmp eax, 0x5c
je 0x1000178f
cmp eax, 0x2f
je 0x1000178f
push 0x5c
lea ecx, [esp + 0x20]
call fcn.100079b0
push edi
lea ecx, [esp + 0x20]
call fcn.10007a40
mov eax, dword [esp + 0x20]
test eax, eax
jle 0x100017c5
mov esi, dword [esp + 0x28]
lea ecx, [eax - 1]
cmp ecx, eax
jae 0x100017ba
movzx eax, word [esi + ecx*2]
cmp eax, 0x5c
je 0x100017c5
cmp eax, 0x2f
je 0x100017c5
push 0x5c
lea ecx, [esp + 0x20]
call fcn.100079b0
push 0x10045970
lea ecx, [esp + 0x20]
call fcn.10007a40
mov edi, dword [esp + 0x28]
sub esp, 8
lea eax, [esp + 0x74]
push eax
push str.AutoUpdateHelperPath
push edi
mov dword [esp + 0x80], vtable.CStringBufferW.0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x84], 0
call fcn.10008fa0
test eax, eax
je 0x1000182c
cmp dword [esp + 0x78], 0
je 0x1000182c
cmp dword [esp + 0x70], 0
jne 0x10001a7a
lea eax, [esp + 0x3c]
push eax
call fcn.100054b0
mov eax, dword [esp + 0x48]
test eax, eax
je 0x1000235f
cmp dword [esp + 0x40], 0
je 0x1000235f
mov eax, dword [0x1005233c]
test eax, eax
jne 0x10001860
call fcn.10004ce0
mov eax, dword [0x1005233c]
cmp eax, 6
jb 0x100018a1
push ecx
lea ecx, [esp + 0x40]
call fcn.10007f30
push eax
push 0
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x48]
call fcn.10007df0
push eax
lea ecx, [esp + 0x40]
call fcn.100078d0
lea ecx, [esp + 0x2c]
call fcn.100075d0
push str.Local
lea ecx, [esp + 0x40]
call fcn.100079f0
sub esp, 8
lea eax, [esp + 0x34]
push eax
push str.SponsorId
push edi
mov dword [esp + 0x40], vtable.CStringBufferW.0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0
call fcn.10008fa0
test eax, eax
je 0x1000234b
mov esi, dword [esp + 0x38]
test esi, esi
je 0x1000234b
cmp dword [esp + 0x30], 0
je 0x1000234b
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0xa4]
call fcn.10007610
lea eax, [esp + 0x1a8]
push eax
push ecx
call fcn.1000ae10
add esp, 4
mov ecx, eax
call fcn.1000b4a0
cmp dword [eax + 0x14], 8
jb 0x10001924
mov eax, dword [eax]
push eax
lea ecx, [esp + 0xa4]
call fcn.100079f0
lea ecx, [esp + 0x1a8]
call fcn.10002440
push esi
lea ecx, [esp + 0xa4]
call fcn.100079f0
lea eax, [esp + 0xa0]
push eax
call fcn.1000a430
test eax, eax
jne 0x1000199e
mov eax, dword [esp + 0xac]
test eax, eax
je 0x1000197b
cmp dword [esp + 0xa4], 0
je 0x1000197b
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000199e
lea ecx, [esp + 0xa0]
mov esi, 0x80004005
call fcn.100075d0
lea ecx, [esp + 0x2c]
call fcn.100075d0
mov eax, dword [esp + 0x48]
jmp 0x10002364
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0xc]
call fcn.10007610
cmp dword [esp + 0x14], 0
lea ecx, [esp + 8]
jne 0x100019c8
push 0x15
push str.AutoUpdaterHelper.exe
call fcn.100077c0
jmp 0x100019fe
mov eax, dword [esp + 0xc]
add eax, 0x15
push eax
call fcn.10007b10
test eax, eax
je 0x100019fe
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
sub eax, ecx
push str.AutoUpdaterHelper.exe
push eax
mov eax, dword [esp + 0x1c]
lea eax, [eax + ecx*2]
push eax
call fcn.10023e83
add esp, 0xc
add dword [esp + 0xc], 0x15
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x70]
call fcn.100078d0
push dword [esp + 0x14]
lea ecx, [esp + 0x70]
call fcn.100079f0
push ecx
lea eax, [esp + 0x70]
push eax
push ecx
push edi
call fcn.10008c90
lea ecx, [esp + 8]
test eax, eax
jne 0x10001a57
lea esi, [eax + 1]
call fcn.100075d0
lea ecx, [esp + 0xa0]
call fcn.100075d0
lea ecx, [esp + 0x2c]
call fcn.100075d0
mov eax, dword [esp + 0x48]
jmp 0x10002364
call fcn.100075d0
lea ecx, [esp + 0xa0]
call fcn.100075d0
lea ecx, [esp + 0x2c]
call fcn.100075d0
lea ecx, [esp + 0x3c]
call fcn.100075d0
lea ecx, [esp + 0x6c]
call fcn.10001440
test eax, eax
jne 0x10001a8f
lea esi, [eax + 1]
jmp 0x10002379
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x80]
push eax
call fcn.100045b0
cmp dword [esp + 0x8c], 0
je 0x10001ac0
cmp dword [esp + 0x84], 0
je 0x10001ac0
lea ecx, [esp + 0x80]
call fcn.10002ea0
push ecx
lea ecx, [esp + 0x84]
call fcn.10007f30
mov ecx, dword [esp + 0x84]
inc eax
sub ecx, eax
push ecx
push eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x8c]
call fcn.10007df0
push eax
lea ecx, [esp + 0x84]
call fcn.100078d0
lea ecx, [esp + 0x2c]
call fcn.100075d0
sub esp, 8
lea eax, [esp + 0x44]
push eax
push str.ComId
push edi
mov dword [esp + 0x50], vtable.CStringBufferW.0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 0
call fcn.10008fa0
cmp dword [esp + 0x48], 0
je 0x1000232f
cmp dword [esp + 0x40], 0
je 0x1000232f
push str.30F9B915_B755_4826_820B_08FBA6BD249D
lea ecx, [esp + 0x40]
mov dword [esp + 0xc], vtable.CStringBufferW.0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
call fcn.100081c0
test eax, eax
je 0x10001b93
sub esp, 8
lea eax, [esp + 0x10]
push eax
push str.EngineHelperFileName
push edi
call fcn.10008fa0
jmp 0x10001c7d
lea eax, [esp + 0x1a8]
push eax
push ecx
call fcn.1000ae10
add esp, 4
mov ecx, eax
call fcn.1000b720
cmp dword [eax + 0x14], 8
jb 0x10001bb3
mov eax, dword [eax]
push ecx
push eax
lea ecx, [esp + 0x34]
call fcn.10007560
lea ecx, [esp + 0x1a8]
call fcn.10002440
push dword [esp + 0x9c]
lea ecx, [esp + 0x30]
call fcn.100079f0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push str.ToolbarHelperFileName
push dword [esp + 0x48]
push 0x80000001
call fcn.10009130
test eax, eax
je 0x10001c14
mov esi, dword [esp + 0x14]
test esi, esi
je 0x10001c14
cmp dword [esp + 0xc], 0
je 0x10001c14
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10001c2b
sub esp, 8
lea eax, [esp + 0x10]
push eax
push str.ToolbarHelperFileName
push edi
call fcn.10008fa0
mov esi, dword [esp + 0x14]
xor eax, eax
push 0x206
push eax
mov word [esp + 0x1d8], ax
lea eax, [esp + 0x1da]
push eax
call fcn.10027fa0
add esp, 0xc
lea eax, [esp + 0x1d0]
push 0x103
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x10001c74
lea eax, [esp + 0x1d0]
push eax
lea ecx, [esp + 0xc]
call fcn.10007840
lea ecx, [esp + 0x2c]
call fcn.100075d0
lea ecx, [esp + 8]
call fcn.10007be0
test eax, eax
je 0x10001c99
mov esi, 0x80004005
call fcn.100075d0
jmp 0x10002334
push 0x5c
lea ecx, [esp + 0xc]
call fcn.10007fc0
cmp eax, 0xffffffff
je 0x10001cd4
mov ecx, dword [esp + 0xc]
sub ecx, eax
dec ecx
push ecx
inc eax
push eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x14]
call fcn.10007df0
push eax
lea ecx, [esp + 0xc]
call fcn.100078d0
lea ecx, [esp + 0x2c]
call fcn.100075d0
push ecx
push str.1.exe
lea ecx, [esp + 0x10]
call fcn.10008010
cmp eax, 0xffffffff
mov eax, dword [esp + 0xc]
lea ecx, [esp + 8]
je 0x10001d69
add eax, 0xfffffffb
push eax
push 0
lea eax, [esp + 0x34]
push eax
call fcn.10007df0
push eax
lea ecx, [esp + 0xc]
call fcn.100078d0
lea ecx, [esp + 0x2c]
call fcn.100075d0
cmp dword [esp + 0x14], 0
lea ecx, [esp + 8]
jne 0x10001d2f
push 4
push str..exe
call fcn.100077c0
jmp 0x10001ddd
mov eax, dword [esp + 0xc]
add eax, 4
push eax
call fcn.10007b10
test eax, eax
je 0x10001ddd
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
sub eax, esi
push str..exe
push eax
mov eax, dword [esp + 0x1c]
lea eax, [eax + esi*2]
push eax
call fcn.10023e83
add esp, 0xc
add esi, 4
jmp 0x10001dd9
add eax, 0xfffffffc
push eax
push 0
lea eax, [esp + 0x34]
push eax
call fcn.10007df0
push eax
lea ecx, [esp + 0xc]
call fcn.100078d0
lea ecx, [esp + 0x2c]
call fcn.100075d0
cmp dword [esp + 0x14], 0
lea ecx, [esp + 8]
jne 0x10001da5
push 5
push str.1.exe
call fcn.100077c0
jmp 0x10001ddd
mov eax, dword [esp + 0xc]
add eax, 5
push eax
call fcn.10007b10
test eax, eax
je 0x10001ddd
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
sub eax, esi
push str.1.exe
push eax
mov eax, dword [esp + 0x1c]
lea eax, [eax + esi*2]
push eax
call fcn.10023e83
add esp, 0xc
add esi, 5
mov dword [esp + 0xc], esi
push ecx
push str.FALSE
lea ecx, [esp + 0x10c]
call fcn.10007560
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x128]
call fcn.10007610
push str.Settings
lea ecx, [esp + 0x128]
call fcn.100079f0
lea eax, [esp + 0x124]
push eax
lea ecx, [esp + 0xd4]
call fcn.10007610
push str.MyStuff
lea ecx, [esp + 0xd4]
call fcn.100079f0
lea ecx, [esp + 0xd0]
call fcn.100013a0
test eax, eax
je 0x10001e77
lea ecx, [esp + 0xd0]
call fcn.10001260
test eax, eax
jne 0x10001e66
lea ecx, [esp + 0xd0]
call fcn.10001300
test eax, eax
je 0x10001e77
push str.TRUE
lea ecx, [esp + 0x108]
call fcn.10007840
lea eax, [esp + 0xf4]
push eax
call fcn.100054b0
lea eax, [esp + 0xf4]
push eax
lea ecx, [esp + 0x118]
call fcn.10007610
push dword [esp + 0x9c]
lea ecx, [esp + 0x118]
call fcn.100079f0
lea eax, [esp + 0x134]
push eax
call fcn.100061a0
push dword [esp + 0x9c]
lea ecx, [esp + 0x138]
call fcn.100079f0
push ecx
push 0x10045b04
lea ecx, [esp + 0x54]
call fcn.10007560
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x10001f4a
mov esi, ecx
lea edx, [esi + 2]
mov edi, edi
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10001ef0
sub esi, edx
sar esi, 1
cmp dword [esp + 0x58], 0
jne 0x10001f13
push esi
push ecx
lea ecx, [esp + 0x54]
call fcn.100077c0
jmp 0x10001f4a
mov eax, dword [esp + 0x50]
add eax, esi
push eax
lea ecx, [esp + 0x50]
call fcn.10007b10
test eax, eax
je 0x10001f4a
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
push dword [esp + 0x18]
sub eax, ecx
push eax
mov eax, dword [esp + 0x60]
lea eax, [eax + ecx*2]
push eax
call fcn.10023e83
add esp, 0xc
add dword [esp + 0x50], esi
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0xc4]
call fcn.10007610
push dword [esp + 0x58]
lea ecx, [esp + 0xc4]
call fcn.100079f0
cmp dword [esp + 0xcc], 0
je 0x10001f8e
cmp dword [esp + 0xc4], 0
je 0x10001f8e
lea ecx, [esp + 0xc0]
call fcn.10002ea0
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0xc4]
call fcn.10008390
push eax
lea ecx, [esp + 0x50]
call fcn.100078d0
lea ecx, [esp + 0x2c]
call fcn.100075d0
push ecx
push 0x10045b0c
lea ecx, [esp + 0x64]
call fcn.10007560
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x1000202f
mov esi, ecx
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10001fd5
sub esi, edx
sar esi, 1
cmp dword [esp + 0x68], 0
jne 0x10001ff8
push esi
push ecx
lea ecx, [esp + 0x64]
call fcn.100077c0
jmp 0x1000202f
mov eax, dword [esp + 0x60]
add eax, esi
push eax
lea ecx, [esp + 0x60]
call fcn.10007b10
test eax, eax
je 0x1000202f
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
push dword [esp + 0x18]
sub eax, ecx
push eax
mov eax, dword [esp + 0x70]
lea eax, [eax + ecx*2]
push eax
call fcn.10023e83
add esp, 0xc
add dword [esp + 0x60], esi
lea eax, [esp + 0x114]
push eax
lea ecx, [esp + 0xb4]
call fcn.10007610
push dword [esp + 0x68]
lea ecx, [esp + 0xb4]
call fcn.100079f0
cmp dword [esp + 0xbc], 0
je 0x10002073
cmp dword [esp + 0xb4], 0
je 0x10002073
lea ecx, [esp + 0xb0]
call fcn.10002ea0
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0xb4]
call fcn.10008390
push eax
lea ecx, [esp + 0x60]
call fcn.100078d0
lea ecx, [esp + 0x2c]
call fcn.100075d0
call fcn.10005450
test eax, eax
je 0x100020b2
call fcn.10002ab0
mov dword [esp + 0x18], 0
cmp eax, 5
jne 0x100020ba
mov dword [esp + 0x18], 1
lea eax, [esp + 0x7c]
push eax
push ecx
push edi
mov dword [esp + 0x88], 1
call fcn.10009320
mov esi, dword [esp + 0x7c]
test eax, eax
mov ecx, 1
cmove esi, ecx
mov dword [esp + 0x1c], vtable.CStringBufferW.0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
test esi, esi
je 0x10002113
push 4
push str.__S
lea ecx, [esp + 0x24]
call fcn.100077c0
lea eax, [esp + 0xf4]
push eax
mov edx, str.userdir
lea ecx, [esp + 0x20]
call fcn.10001510
add esp, 4
lea eax, [esp + 0x90]
push eax
mov edx, str.toolbarname
lea ecx, [esp + 0x20]
call fcn.10001510
add esp, 4
lea eax, [esp + 0x80]
push eax
mov edx, str.dllname
lea ecx, [esp + 0x20]
call fcn.10001510
add esp, 4
lea eax, [esp + 0x4c]
push eax
mov edx, str.proxydllname
lea ecx, [esp + 0x20]
call fcn.10001510
add esp, 4
lea eax, [esp + 0x5c]
push eax
mov edx, str.loaderdllname
lea ecx, [esp + 0x20]
call fcn.10001510
add esp, 4
lea eax, [esp + 8]
push eax
mov edx, str.helpername
lea ecx, [esp + 0x20]
call fcn.10001510
add esp, 4
lea eax, [esp + 0x3c]
push eax
mov edx, str.hostid
lea ecx, [esp + 0x20]
call fcn.10001510
add esp, 4
lea eax, [esp + 0x104]
push eax
mov edx, str.mystuffenabled
lea ecx, [esp + 0x20]
call fcn.10001510
add esp, 4
test esi, esi
jne 0x100021e1
mov edx, str.nonsilent
lea ecx, [esp + 0x1c]
call fcn.10001620
cmp dword [esp + 0x18], 0
je 0x100021f6
mov edx, str.highintegrity
lea ecx, [esp + 0x1c]
call fcn.10001620
push 0x44
lea eax, [esp + 0x164]
push 0
push eax
call fcn.10027fa0
add esp, 0xc
lea eax, [esp + 0xe0]
push eax
lea eax, [esp + 0x164]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
push dword [esp + 0x48]
xorps xmm0, xmm0
push dword [esp + 0x9c]
mov dword [esp + 0x188], 0x44
movdqa xmmword [esp + 0x108], xmm0
mov dword [esp + 0x1f0], 0
mov dword [esp + 0x1f4], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push 0xea60
push dword [esp + 0xe4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call esi
push dword [esp + 0xe0]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0xe4]
call esi
lea ecx, [esp + 0x1a8]
mov esi, 1
call fcn.10009f50
lea ecx, [esp + 0x1c]
call fcn.100075d0
lea ecx, [esp + 0xb0]
call fcn.100075d0
lea ecx, [esp + 0x5c]
call fcn.100075d0
lea ecx, [esp + 0xc0]
call fcn.100075d0
lea ecx, [esp + 0x4c]
call fcn.100075d0
lea ecx, [esp + 0x134]
call fcn.100075d0
lea ecx, [esp + 0x114]
call fcn.100075d0
lea ecx, [esp + 0xf4]
call fcn.100075d0
lea ecx, [esp + 0xd0]
call fcn.100075d0
lea ecx, [esp + 0x124]
call fcn.100075d0
lea ecx, [esp + 0x104]
call fcn.100075d0
lea ecx, [esp + 8]
call fcn.100075d0
jmp 0x10002334
mov esi, 0x80004005
lea ecx, [esp + 0x3c]
call fcn.100075d0
lea ecx, [esp + 0x80]
call fcn.100075d0
jmp 0x10002379
lea ecx, [esp + 0x2c]
mov esi, 0x80004005
call fcn.100075d0
mov eax, dword [esp + 0x48]
jmp 0x10002364
mov esi, 0x80004005
mov dword [esp + 0x3c], vtable.CStringBufferW.0
test eax, eax
je 0x10002379
push eax
call fcn.1002354a
add esp, 4
mov eax, dword [esp + 0x78]
test eax, eax
je 0x1000238a
push eax
call fcn.1002354a
add esp, 4
test edi, edi
je 0x10002397
push edi
call fcn.1002354a
add esp, 4
lea eax, [esp + 0x148]
push eax
mov dword [esp + method.CCritical.virtual_0], vtable.CCritical.0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [esp + 0x9c]
jmp 0x100023be
mov esi, 0x80004005
mov dword [esp + 0x90], vtable.CStringBufferW.0
test eax, eax
je 0x100023d6
push eax
call fcn.1002354a
add esp, 4
mov ecx, dword [esp + 0x3dc]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.10022a24
mov esp, ebp
pop ebp
ret