Function at 0x10038550
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100bc2a0
push 0x1006cd40
mov eax, dword fs:[0]
push eax
add esp, 0xfffff76c
mov eax, dword [0x100c3384]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
call fcn.10017160
mov dword [ebp - 0x864], eax
cmp dword [ebp + 8], 0
jne 0x100385bd
mov dword [ebp - 0x834], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x834]
jmp 0x10038887
mov eax, 2
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, word [edx + ecx]
test eax, eax
jne 0x100385ec
mov dword [ebp - 0x838], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x838]
jmp 0x10038887
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x820], ecx
mov edx, dword [ebp - 0x820]
add edx, 2
mov dword [ebp - 0x83c], edx
mov eax, dword [ebp - 0x820]
mov cx, word [eax]
mov word [ebp - 0x826], cx
add dword [ebp - 0x820], 2
cmp word [ebp - 0x826], 0
jne 0x10038604
mov edx, dword [ebp - 0x820]
sub edx, dword [ebp - 0x83c]
sar edx, 1
mov dword [ebp - 0x840], edx
cmp dword [ebp - 0x840], 0x104
jbe 0x10038661
mov dword [ebp - 0x844], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x844]
jmp 0x10038887
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1003868b
mov dword [ebp - 0x848], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x848]
jmp 0x10038887
mov dword [ebp - 0x868], 0x400
push 0x800
push 0
lea ecx, [ebp - 0x81c]
push ecx
call fcn.1006c6b0
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push str.__s_
push 0x3ff
lea eax, [ebp - 0x81c]
push eax
call fcn.10038f30
add esp, 0x10
push 0x3c
push 0
lea ecx, [ebp - 0x8a4]
push ecx
call fcn.1006c6b0
add esp, 0xc
mov dword [ebp - 0x8a4], 0x3c
lea edx, [ebp - 0x81c]
mov dword [ebp - 0x894], edx
mov dword [ebp - 0x898], 0x100a2298
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x890], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x888], ecx
mov dword [ebp - 0x8a0], 0x440
mov dword [ebp - 0x824], 0
cmp dword [ebp + 0x14], 0
je 0x10038762
mov edx, dword [ebp + 8]
push edx
call fcn.10059240
add esp, 4
test eax, eax
jne 0x10038762
cmp dword [ebp + 0x1c], 0
je 0x10038746
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0xffffffff
mov dword [ebp - 0x84c], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x84c]
jmp 0x10038887
lea ecx, [ebp - 0x8a4]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov dword [ebp - 0x824], eax
cmp dword [ebp - 0x824], 0
je 0x1003881f
cmp dword [ebp + 0x18], 0
je 0x1003881f
mov edx, dword [ebp + 0x28]
mov dword [ebp - 0x860], edx
mov eax, dword [ebp - 0x86c]
mov dword [ebp - 0x85c], eax
mov ecx, dword [ebp + 0x24]
mov edx, dword [ecx]
push edx
push 0
lea eax, [ebp - 0x860]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [ebp - 0x82c], eax
cmp dword [ebp - 0x82c], 0x102
je 0x100387d3
cmp dword [ebp - 0x82c], 0
jne 0x1003881f
cmp dword [ebp + 0x1c], 0
je 0x10038806
cmp dword [ebp - 0x82c], 0x102
jne 0x100387f1
mov dword [ebp - 0x830], 0xfffffffe
jmp 0x100387fb
mov dword [ebp - 0x830], 0xfffffffd
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp - 0x830]
mov dword [ecx], edx
mov dword [ebp - 0x850], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x850]
jmp 0x10038887
cmp dword [ebp - 0x824], 0
je 0x10038835
mov eax, dword [ebp - 0x86c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x824]
mov dword [ebp - 0x854], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x854]
jmp 0x10038887
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1005dfd5
mov esp, ebp
pop ebp
ret 0x24