Function at 0x1003858
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x678
mov eax, dword [0x100c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x414], ax
xor ebx, ebx
lea eax, [ebp - 0x412]
push ebx
push eax
call sub.msvcrt.dll_memset
xor eax, eax
push esi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
call sub.msvcrt.dll_memset
xor eax, eax
push esi
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push ebx
push eax
call sub.msvcrt.dll_memset
push 0x40
lea eax, [ebp - 0x674]
push ebx
push eax
mov dword [ebp - 0x678], ebx
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [ebp - 0x634], ebx
lea edi, [ebp - 0x630]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0x30
lea eax, [ebp - 0x620]
push eax
mov dword [ebp - 0x624], ebx
mov dword [ebp - 0x620], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
jne 0x100390f
mov dword [ebp - 0x620], ebx
cmp dword [ebp - 0x620], ebx
je 0x100396b
lea eax, [ebp - 0x624]
push eax
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
test eax, eax
jne 0x100396b
mov eax, dword [0x100c014]
cmp eax, 0x100c014
je 0x1003958
test byte [eax + 0x1c], 1
je 0x1003958
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x100c014]
push 0x10012c8
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003070
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100346f
mov ebx, eax
jmp 0x1003c31
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call edi
cmp eax, ebx
je 0x1003bf6
cmp eax, esi
jae 0x1003bf6
push 0x10013d0
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01003758
mov ebx, eax
test ebx, ebx
jge 0x10039d3
mov eax, dword [0x100c014]
cmp eax, 0x100c014
je 0x1003c31
test byte [eax + 0x1c], 1
je 0x1003c31
push ebx
lea ecx, [ebp - 0x20c]
push ecx
push 0x10012c8
push 0xc
jmp 0x1003a30
push esi
lea eax, [ebp - 0x61c]
push eax
call edi
xor edi, edi
cmp eax, edi
je 0x1003bc4
cmp eax, esi
jae 0x1003bc4
push 0x10013b0
push esi
lea eax, [ebp - 0x61c]
push eax
call fcn.01003758
mov ebx, eax
cmp ebx, edi
jge 0x1003a40
mov eax, dword [0x100c014]
cmp eax, 0x100c014
je 0x1003c31
test byte [eax + 0x1c], 1
je 0x1003c31
push ebx
lea ecx, [ebp - 0x20c]
push ecx
push 0x10012c8
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003109
jmp 0x1003c31
lea eax, [ebp - 0x61c]
push eax
call fcn.01005b67
test eax, eax
jne 0x1003a7e
mov eax, dword [0x100c014]
cmp eax, 0x100c014
je 0x1003a74
test byte [eax + 0x1c], 1
je 0x1003a74
push 0x10012c8
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100304a
mov ebx, 0x80070002
jmp 0x1003c31
mov eax, dword [ebp + 8]
sub eax, edi
je 0x1003a9d
dec eax
jne 0x1003ac2
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x1001360
jmp 0x1003ab0
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x1001310
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.010037fa
mov ebx, eax
add esp, 0x14
cmp ebx, edi
jge 0x1003aed
mov eax, dword [0x100c014]
cmp eax, 0x100c014
je 0x1003c31
test byte [eax + 0x1c], 1
je 0x1003c31
push ebx
push 0x10012c8
push 0x10
jmp 0x1003c26
mov eax, dword [0x100c014]
mov esi, 0x100c014
cmp eax, esi
je 0x1003b21
test byte [eax + 0x1c], 4
je 0x1003b21
lea ecx, [ebp - 0x414]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
push 0x10012c8
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100317c
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x678]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x678], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1003baa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1003b6b
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
mov eax, dword [0x100c014]
cmp eax, esi
je 0x1003c31
test byte [eax + 0x1c], 1
je 0x1003c31
push ebx
lea ecx, [ebp - 0x414]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
push 0x10012c8
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003243
jmp 0x1003c31
push dword [ebp - 0x634]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x630]
call esi
xor ebx, ebx
jmp 0x1003c31
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1003bd8
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
mov eax, dword [0x100c014]
cmp eax, 0x100c014
je 0x1003c31
test byte [eax + 0x1c], 1
je 0x1003c31
push ebx
push 0x10012c8
push 0xd
jmp 0x1003c26
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1003c0a
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
mov eax, dword [0x100c014]
cmp eax, 0x100c014
je 0x1003c31
test byte [eax + 0x1c], 1
je 0x1003c31
push ebx
push 0x10012c8
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003070
cmp dword [ebp - 0x624], 0
je 0x1003c83
cmp dword [ebp - 0x620], 0
je 0x1003c83
push dword [ebp - 0x624]
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
test eax, eax
jne 0x1003c83
mov eax, dword [0x100c014]
cmp eax, 0x100c014
je 0x1003c83
test byte [eax + 0x1c], 1
je 0x1003c83
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x100c014]
push 0x10012c8
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003070
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.01002f1d
leave
ret 4