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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10b8
call fcn.1008c5a0
mov eax, dword [0x100dcdc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x1000
mov ebx, eax
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.1008e330
add esp, 0xc
lea eax, [ebp - 0x1004]
push 0x800
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, esi
mov dword [ebp - 0x1054], 0
xorps xmm0, xmm0
mov dword [ebp - 0x1050], 0
movups xmmword [ebp - 0x1064], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10038d95
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x1064]
call fcn.10007490
lea eax, [ebp - 0x104c]
push 5
push eax
call fcn.1002f510
lea eax, [ebp - 0x104c]
push eax
lea eax, [ebp - 0x1064]
push eax
lea eax, [ebp - 0x101c]
push eax
call fcn.1002ea70
cmp dword [ebp - 0x1008], 7
lea eax, [ebp - 0x101c]
push edi
cmova eax, dword [ebp - 0x101c]
push 0x100bc148
push ebx
push str._u__d
push eax
lea eax, [ebp - 0x1034]
push str.__s___s__d__s___s_
push eax
call fcn.1000e620
add esp, 0x30
lea eax, [ebp - 0x101c]
cmp dword [ebp - 0x1008], 7
cmova eax, dword [ebp - 0x101c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10038ea7
push 0x44
lea eax, [ebp - 0x10b8]
push 0
push eax
call fcn.1008e330
add esp, 0xc
lea edx, [ebp - 0x1074]
cmp dword [ebp - 0x1020], 7
lea ecx, [ebp - 0x1034]
lea eax, [ebp - 0x101c]
cmova ecx, dword [ebp - 0x1034]
cmp dword [ebp - 0x1008], 7
push edx
cmova eax, dword [ebp - 0x101c]
lea edx, [ebp - 0x10b8]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp - 0x1070]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
setne bl
call esi
push dword [ebp - 0x1074]
call esi
jmp 0x10038ea9
xor bl, bl
mov ecx, dword [ebp - 0x1020]
cmp ecx, 7
jbe 0x10038ee9
mov edx, dword [ebp - 0x1034]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10038edf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003900b
push ecx
push edx
call fcn.1008c555
add esp, 8
mov ecx, dword [ebp - 0x1008]
xor eax, eax
mov dword [ebp - 0x1024], 0
mov dword [ebp - 0x1020], 7
mov word [ebp - 0x1034], ax
cmp ecx, 7
jbe 0x10038f46
mov edx, dword [ebp - 0x101c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10038f3c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003900b
push ecx
push edx
call fcn.1008c555
add esp, 8
mov ecx, dword [ebp - 0x1038]
xor eax, eax
mov dword [ebp - 0x100c], 0
mov dword [ebp - 0x1008], 7
mov word [ebp - 0x101c], ax
cmp ecx, 7
jbe 0x10038f9f
mov edx, dword [ebp - 0x104c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10038f95
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003900b
push ecx
push edx
call fcn.1008c555
add esp, 8
mov ecx, dword [ebp - 0x1050]
xor eax, eax
mov dword [ebp - 0x103c], 0
mov dword [ebp - 0x1038], 7
mov word [ebp - 0x104c], ax
cmp ecx, 7
jbe 0x10038ff8
mov edx, dword [ebp - 0x1064]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10038fee
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003900b
push ecx
push edx
call fcn.1008c555
add esp, 8
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008c563
mov esp, ebp
pop ebp
ret
call fcn.10091a2f
int3