Function at 0x100a9ca0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c6bff
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x100f83e0]
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.1002873d
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.100770c0
add esp, 0xc
mov ecx, dword [ebp - 0x24c]
add ecx, 0x44
call fcn.10037237
mov dword [ebp - 0x250], eax
push 0
push 0x100db8c8
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.10037237
mov dword [ebp - 0x254], eax
push 0x100d79d3
lea ecx, [ebp - 0x18]
call fcn.10046c35
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.10037237
mov dword [ebp - 0x258], eax
push 0
push 0x100db8f4
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 0x100a9dc2
and dword [ebp - 0x240], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.1000ee8e
mov eax, dword [ebp - 0x240]
jmp 0x100a9f81
and dword [ebp - 0x230], 0
jmp 0x100a9dd8
mov eax, dword [ebp - 0x230]
inc eax
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 5
jge 0x100a9df4
mov eax, dword [ebp - 0x230]
mov ecx, dword [ebp - 0x24c]
and dword [ecx + eax*4 + 0x74], 0
jmp 0x100a9dcb
lea ecx, [ebp - 0x18]
call fcn.10037237
mov dword [ebp - 0x20], eax
and dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0x10], 0
je 0x100a9eb5
and dword [ebp - 0x238], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x234], eax
push 0x2c
push dword [ebp - 0x20]
call fcn.10024d3b
pop ecx
pop ecx
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x100a9e45
mov dword [ebp - 0x238], 1
jmp 0x100a9e4c
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 0x100a9e6e
and dword [ebp - 0x10], 0
jmp 0x100a9eb5
lea eax, [ebp - 0x22c]
push eax
call fcn.1007c899
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 0x100a9e93
jmp 0x100a9eb5
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 0x100a9eb0
and dword [ebp - 0x10], 0
jmp 0x100a9eb5
jmp 0x100a9e0a
cmp dword [ebp - 0x10], 0
jne 0x100a9f20
and dword [ebp - 0x23c], 0
jmp 0x100a9ed1
mov eax, dword [ebp - 0x23c]
inc eax
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp - 0x23c]
cmp eax, dword [ebp - 0x14]
jge 0x100a9f05
mov eax, dword [ebp - 0x23c]
mov ecx, dword [ebp - 0x24c]
push dword [ecx + eax*4 + 0x74]
call fcn.10079b84
pop ecx
mov eax, dword [ebp - 0x23c]
mov ecx, dword [ebp - 0x24c]
and dword [ecx + eax*4 + 0x74], 0
jmp 0x100a9ec4
and dword [ebp - 0x244], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.1000ee8e
mov eax, dword [ebp - 0x244]
jmp 0x100a9f81
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.1000ee8e
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.100770aa
leave
ret