Function at 0x1009c157
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b3d0f
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x100e03e0]
xor eax, ebp
mov dword [ebp - 0x24], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24c], ecx
lea ecx, [ebp - 0x18]
call fcn.10012bd8
and dword [ebp - 4], 0
and dword [ebp - 0x1c], 0
and word [ebp - 0x22c], 0
push 0x206
push 0
lea eax, [ebp - 0x22a]
push eax
call fcn.10071ef0
add esp, 0xc
mov ecx, dword [ebp - 0x24c]
add ecx, 0x44
call fcn.10030677
mov dword [ebp - 0x250], eax
push 0
push 0x100c6430
push dword [ebp - 0x250]
mov eax, dword [ebp - 0x250]
mov eax, dword [eax]
call dword [eax + 0x18]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x24c]
add ecx, 0x44
call fcn.10030677
mov dword [ebp - 0x254], eax
push 0x100c3853
lea ecx, [ebp - 0x18]
call fcn.10040e47
push eax
push str.StartMidProcessName
push dword [ebp - 0x254]
mov eax, dword [ebp - 0x254]
mov eax, dword [eax]
call dword [eax + 0x14]
mov ecx, dword [ebp - 0x24c]
add ecx, 0x44
call fcn.10030677
mov dword [ebp - 0x258], eax
push 0
push 0x100c645c
push dword [ebp - 0x258]
mov eax, dword [ebp - 0x258]
mov eax, dword [eax]
call dword [eax + 0x18]
mov ecx, dword [ebp - 0x24c]
mov dword [ecx + 0x98], eax
cmp dword [ebp - 0x1c], 5
jle 0x1009c279
and dword [ebp - 0x240], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.1000ac8b
mov eax, dword [ebp - 0x240]
jmp 0x1009c438
and dword [ebp - 0x230], 0
jmp 0x1009c28f
mov eax, dword [ebp - 0x230]
inc eax
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 5
jge 0x1009c2ab
mov eax, dword [ebp - 0x230]
mov ecx, dword [ebp - 0x24c]
and dword [ecx + eax*4 + 0x74], 0
jmp 0x1009c282
lea ecx, [ebp - 0x18]
call fcn.10030677
mov dword [ebp - 0x20], eax
and dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0x10], 0
je 0x1009c36c
and dword [ebp - 0x238], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x234], eax
push 0x2c
push dword [ebp - 0x20]
call fcn.10034a44
pop ecx
pop ecx
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x1009c2fc
mov dword [ebp - 0x238], 1
jmp 0x1009c303
mov eax, dword [ebp - 0x20]
and word [eax], 0
push 0x103
lea eax, [ebp - 0x22c]
push eax
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x1009c325
and dword [ebp - 0x10], 0
jmp 0x1009c36c
lea eax, [ebp - 0x22c]
push eax
call fcn.10074638
pop ecx
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24c]
mov dword [edx + ecx*4 + 0x74], eax
cmp dword [ebp - 0x238], 1
jne 0x1009c34a
jmp 0x1009c36c
mov eax, dword [ebp - 0x20]
inc eax
inc eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x1c]
jl 0x1009c367
and dword [ebp - 0x10], 0
jmp 0x1009c36c
jmp 0x1009c2c1
cmp dword [ebp - 0x10], 0
jne 0x1009c3d7
and dword [ebp - 0x23c], 0
jmp 0x1009c388
mov eax, dword [ebp - 0x23c]
inc eax
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp - 0x23c]
cmp eax, dword [ebp - 0x14]
jge 0x1009c3bc
mov eax, dword [ebp - 0x23c]
mov ecx, dword [ebp - 0x24c]
push dword [ecx + eax*4 + 0x74]
call fcn.1007177d
pop ecx
mov eax, dword [ebp - 0x23c]
mov ecx, dword [ebp - 0x24c]
and dword [ecx + eax*4 + 0x74], 0
jmp 0x1009c37b
and dword [ebp - 0x244], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.1000ac8b
mov eax, dword [ebp - 0x244]
jmp 0x1009c438
push str.GlobalCD10CD35_4F22_4356_A3F4_923A1CF22430
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [ebp - 0x24c]
mov dword [ecx + 0x90], eax
push str.Global11360E02_4887_47E6_BA9B_0E28A12D0B9B
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [ebp - 0x24c]
mov dword [ecx + 0x94], eax
mov eax, dword [ebp - 0x24c]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0x88], ecx
mov dword [ebp - 0x248], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.1000ac8b
mov eax, dword [ebp - 0x248]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.1006f271
leave
ret