Function at 0x100a07a9
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ba67f
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x100e93e0]
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.1002182e
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.100738a0
add esp, 0xc
mov ecx, dword [ebp - 0x24c]
add ecx, 0x44
call fcn.1003537a
mov dword [ebp - 0x250], eax
push 0
push 0x100cdd20
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.1003537a
mov dword [ebp - 0x254], eax
push 0x100ca9b2
lea ecx, [ebp - 0x18]
call fcn.100238f6
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.1003537a
mov dword [ebp - 0x258], eax
push 0
push 0x100cdd4c
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 0x100a08cb
and dword [ebp - 0x240], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.1000abb5
mov eax, dword [ebp - 0x240]
jmp 0x100a0a8a
and dword [ebp - 0x230], 0
jmp 0x100a08e1
mov eax, dword [ebp - 0x230]
inc eax
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 5
jge 0x100a08fd
mov eax, dword [ebp - 0x230]
mov ecx, dword [ebp - 0x24c]
and dword [ecx + eax*4 + 0x74], 0
jmp 0x100a08d4
lea ecx, [ebp - 0x18]
call fcn.1003537a
mov dword [ebp - 0x20], eax
and dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0x10], 0
je 0x100a09be
and dword [ebp - 0x238], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x234], eax
push 0x2c
push dword [ebp - 0x20]
call fcn.10034c98
pop ecx
pop ecx
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x100a094e
mov dword [ebp - 0x238], 1
jmp 0x100a0955
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 0x100a0977
and dword [ebp - 0x10], 0
jmp 0x100a09be
lea eax, [ebp - 0x22c]
push eax
call fcn.100761cc
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 0x100a099c
jmp 0x100a09be
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 0x100a09b9
and dword [ebp - 0x10], 0
jmp 0x100a09be
jmp 0x100a0913
cmp dword [ebp - 0x10], 0
jne 0x100a0a29
and dword [ebp - 0x23c], 0
jmp 0x100a09da
mov eax, dword [ebp - 0x23c]
inc eax
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp - 0x23c]
cmp eax, dword [ebp - 0x14]
jge 0x100a0a0e
mov eax, dword [ebp - 0x23c]
mov ecx, dword [ebp - 0x24c]
push dword [ecx + eax*4 + 0x74]
call fcn.1007312d
pop ecx
mov eax, dword [ebp - 0x23c]
mov ecx, dword [ebp - 0x24c]
and dword [ecx + eax*4 + 0x74], 0
jmp 0x100a09cd
and dword [ebp - 0x244], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.1000abb5
mov eax, dword [ebp - 0x244]
jmp 0x100a0a8a
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.1000abb5
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.10070c21
leave
ret