Function at 0x100869e
Capabilities:
Accept command line arguments
Create process on windows
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
xor ebx, ebx
push 0x44
lea eax, [ebp - 0x68]
push ebx
push eax
xor esi, esi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
call sub.msvcrt.dll_memset
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
call fcn.010068e8
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x1008979
push eax
push dword [ebp - 0x10]
call fcn.0100a425
mov esi, eax
cmp esi, ebx
jl 0x1008969
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
jne 0x100871d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x100e180], ebx
je 0x1008743
mov eax, dword [0x100e194]
cmp eax, ebx
je 0x1008743
push eax
push 0x100e358
call fcn.01005415
mov esi, eax
cmp esi, ebx
jl 0x1008969
xor eax, eax
inc eax
cmp dword [0x100e300], ebx
je 0x1008753
mov dword [0x100e060], eax
cmp dword [0x100e1e0], ebx
je 0x1008760
mov dword [0x100e350], eax
cmp dword [0x100e060], ebx
je 0x1008774
mov dword [0x100e34c], 2
jmp 0x10087a9
cmp dword [0x100e0c0], ebx
je 0x1008783
mov dword [0x100e34c], eax
jmp 0x10087a9
cmp dword [0x100e120], ebx
je 0x1008797
mov dword [0x100e34c], 4
jmp 0x10087a9
cmp dword [0x100e180], ebx
je 0x10087a9
mov dword [0x100e34c], 3
mov eax, dword [0x100e34c]
dec eax
push ebx
je 0x10087bf
dec eax
je 0x10087b8
push ebx
jmp 0x10087c4
push 0x1001d44
jmp 0x10087c4
push 0x1001b58
call dword [sym.imp.KERNEL32.dll_RegisterApplicationRestart]
mov esi, eax
cmp esi, ebx
jl 0x1008969
mov eax, dword [0x100e34c]
cmp eax, ebx
je 0x10087e6
cmp eax, 4
jne 0x1008961
mov edi, 0x800
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call esi
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x100881a
push edi
xor ecx, ecx
push ebx
mov word [eax], cx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x1008824
mov esi, 0x8007000e
jmp 0x1008969
xor ecx, ecx
mov word [eax], cx
push 5
pop eax
mov word [ebp - 0x38], ax
mov eax, dword [0x100e34c]
mov dword [ebp - 0x68], 0x44
mov dword [ebp - 0x3c], 1
mov ebx, 0x80070000
test eax, eax
je 0x100889e
cmp eax, 4
jne 0x1008915
mov edi, 0x400
push edi
push dword [ebp - 4]
push 0x1001d00
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
ja 0x1008888
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x100887e
and eax, 0xffff
or eax, ebx
mov esi, eax
test esi, esi
jl 0x1008967
push dword [ebp - 4]
push 0x1001c88
push edi
push dword [ebp - 8]
call fcn.01006792
add esp, 0x10
jmp 0x100890f
mov edi, 0x400
push edi
push dword [ebp - 4]
push 0x1001c48
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
ja 0x10088d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10088c7
and eax, 0xffff
or eax, ebx
mov esi, eax
test esi, esi
jl 0x1008967
push edi
push dword [ebp - 8]
push 0x1001bc0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
ja 0x10088fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10088f5
and eax, 0xffff
or eax, ebx
mov esi, eax
test esi, esi
jl 0x1008967
cmp dword [ebp - 0xc], 0
je 0x1008915
push 0x1001bb0
push edi
push dword [ebp - 8]
call fcn.01006738
mov esi, eax
test esi, esi
jl 0x1008967
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
xor esi, esi
push esi
push esi
push 0x20
push 1
push esi
push esi
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x100894e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x1008948
and eax, 0xffff
or eax, ebx
mov esi, eax
test esi, esi
jl 0x1008967
push 0x7530
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
xor esi, esi
inc esi
xor ebx, ebx
cmp esi, ebx
jge 0x1008970
jmp 0x1008969
xor ebx, ebx
push esi
push ebx
call fcn.01007200
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x24], ebx
je 0x1008992
cmp dword [ebp - 0x24], 0xffffffff
je 0x1008992
push dword [ebp - 0x24]
call edi
mov dword [ebp - 0x24], ebx
cmp dword [ebp - 0x20], ebx
je 0x10089a5
cmp dword [ebp - 0x20], 0xffffffff
je 0x10089a5
push dword [ebp - 0x20]
call edi
mov dword [ebp - 0x20], ebx
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 4], ebx
je 0x10089bd
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call edi
cmp dword [ebp - 8], ebx
je 0x10089cf
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret