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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001c922
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x10027008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x240], ecx
push 0x801
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x260], 0
call fcn.1000d354
push 0x65
mov dword [ebp - 0x23c], eax
call fcn.1000d354
push 0x81
mov dword [ebp - 0x24c], eax
call fcn.1000d354
add esp, 0xc
mov dword [ebp - 0x244], eax
call fcn.10001c20
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x1000a25e
push 0x80004005
call fcn.10002580
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x248], edi
mov dword [ebp - 4], 0
call fcn.10001c20
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x1000a291
push 0x80004005
call fcn.10002580
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x254], esi
mov byte [ebp - 4], 1
call fcn.10001c20
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x1000a2c1
push 0x80004005
call fcn.10002580
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x250], ebx
push dword [ebp - 0x244]
lea eax, [ebp - 0x258]
mov byte [ebp - 4], 2
push dword [ebp - 0x24c]
push dword [ebp - 0x23c]
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x25c]
push eax
mov eax, dword [0x10029910]
mov eax, dword [eax + 0xc]
call eax
mov ecx, dword [ebp - 0x260]
test ecx, ecx
je 0x1000a72b
mov eax, dword [0x10029910]
cmp dword [eax + 0x24], ecx
jge 0x1000a72b
cmp dword [ebp - 0x25c], 0
je 0x1000a4fd
cmp dword [ebp - 0x258], 0
je 0x1000a459
push 0x103
lea eax, [ebp - 0x21f]
mov byte [ebp - 0x220], 0
push 0
push eax
call fcn.1000e7e0
push 0x104
lea eax, [ebp - 0x117]
mov byte [ebp - 0x118], 0
push 0
push eax
call fcn.1000e7e0
add esp, 0x18
lea eax, [ebp - 0x220]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x118]
push eax
push 0
push 0x10022850
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea ecx, [ebp - 0x250]
call fcn.10001160
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x248]
push str._s.exe
push eax
call fcn.10003af0
mov edi, dword [ebp - 0x248]
add esp, 0xc
push edi
push ecx
call fcn.1000a120
mov ebx, dword [ebp - 0x250]
add esp, 8
test eax, eax
je 0x1000a42f
push dword [ebp - 0x244]
lea eax, [ebp - 0x254]
push dword [ebp - 0x24c]
push ebx
push dword [ebp - 0x23c]
push str._s___s____s____s_
push eax
call fcn.10003af0
mov esi, dword [ebp - 0x254]
add esp, 0x18
push 5
push 0
push esi
push edi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x1000a72b
mov eax, dword [ebp - 0x240]
push 0x10
push 0x1002296c
push 0x10023034
push dword [eax + 4]
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x1000a72b
mov dword [ebp - 0x224], 0xf
mov dword [ebp - 0x228], 0
mov byte [ebp - 0x238], 0
push 0x32
push 0x10023040
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 3
call fcn.10002330
cmp dword [ebp - 0x224], 0x10
lea eax, [ebp - 0x238]
push 0x41
cmovae eax, dword [ebp - 0x238]
push 0x1002296c
push eax
mov eax, dword [ebp - 0x240]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 1
jne 0x1000a4d3
push 5
push 0
push 0
push dword [ebp - 0x23c]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp - 0x224], 0x10
jb 0x1000a72b
push dword [ebp - 0x238]
call fcn.1000d35d
add esp, 4
jmp 0x1000a72b
cmp dword [ebp - 0x258], 0
mov dword [ebp - 0x224], 0xf
mov dword [ebp - 0x228], 0
mov byte [ebp - 0x238], 0
je 0x1000a69a
push 0x28
push 0x10023074
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 4
call fcn.10002330
cmp dword [ebp - 0x224], 0x10
lea eax, [ebp - 0x238]
push 0x41
cmovae eax, dword [ebp - 0x238]
push 0x1002296c
push eax
mov eax, dword [ebp - 0x240]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 1
jne 0x1000a67a
push 0x103
lea eax, [ebp - 0x21f]
mov byte [ebp - 0x220], 0
push 0
push eax
call fcn.1000e7e0
push 0x104
lea eax, [ebp - 0x117]
mov byte [ebp - 0x118], 0
push 0
push eax
call fcn.1000e7e0
add esp, 0x18
lea eax, [ebp - 0x220]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x118]
push eax
push 0
push 0x10022850
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea ecx, [ebp - 0x250]
call fcn.10001160
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x248]
push str._s.exe
push eax
call fcn.10003af0
mov edi, dword [ebp - 0x248]
add esp, 0xc
push edi
push ecx
call fcn.1000a120
mov ebx, dword [ebp - 0x250]
add esp, 8
test eax, eax
je 0x1000a655
push dword [ebp - 0x244]
lea eax, [ebp - 0x254]
push dword [ebp - 0x24c]
push ebx
push dword [ebp - 0x23c]
push str._s___s____s____s_
push eax
call fcn.10003af0
mov esi, dword [ebp - 0x254]
add esp, 0x18
push 5
push 0
push esi
push edi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x1000a670
mov eax, dword [ebp - 0x240]
push 0x10
push 0x1002296c
push 0x10023034
push dword [eax + 4]
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp - 0x224], 0x10
jb 0x1000a72b
push dword [ebp - 0x238]
call fcn.1000d35d
add esp, 4
jmp 0x1000a72b
push 0x32
push 0x10023040
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 5
call fcn.10002330
cmp dword [ebp - 0x224], 0x10
lea eax, [ebp - 0x238]
push 0x41
cmovae eax, dword [ebp - 0x238]
push 0x1002296c
push eax
mov eax, dword [ebp - 0x240]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 1
jne 0x1000a6f9
push 5
push 0
push 0
push dword [ebp - 0x23c]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp dword [ebp - 0x224], 0x10
jb 0x1000a710
push dword [ebp - 0x238]
call fcn.1000d35d
add esp, 4
mov dword [ebp - 0x224], 0xf
mov dword [ebp - 0x228], 0
mov byte [ebp - 0x238], 0
push dword [ebp - 0x23c]
call fcn.1000e2d6
push dword [ebp - 0x24c]
call fcn.1000e2d6
push dword [ebp - 0x244]
call fcn.1000e2d6
lea edx, [ebx - 0x10]
mov byte [ebp - 4], 1
or ebx, 0xffffffff
lea ecx, [edx + 0xc]
add esp, 0xc
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1000a76f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 0
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1000a78c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x1000a7aa
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000d362
mov esp, ebp
pop ebp
ret