Function at 0x1009beeb
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b388f
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x100e13e0]
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.10023593
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.10071bb0
add esp, 0xc
mov ecx, dword [ebp - 0x24c]
add ecx, 0x44
call fcn.10010f80
mov dword [ebp - 0x250], eax
push 0
push 0x100c5fa0
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.10010f80
mov dword [ebp - 0x254], eax
push 0x100c2722
lea ecx, [ebp - 0x18]
call fcn.10039cae
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.10010f80
mov dword [ebp - 0x258], eax
push 0
push 0x100c5fcc
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 0x1009c00d
and dword [ebp - 0x240], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.1000abe4
mov eax, dword [ebp - 0x240]
jmp 0x1009c1cc
and dword [ebp - 0x230], 0
jmp 0x1009c023
mov eax, dword [ebp - 0x230]
inc eax
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 5
jge 0x1009c03f
mov eax, dword [ebp - 0x230]
mov ecx, dword [ebp - 0x24c]
and dword [ecx + eax*4 + 0x74], 0
jmp 0x1009c016
lea ecx, [ebp - 0x18]
call fcn.10010f80
mov dword [ebp - 0x20], eax
and dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0x10], 0
je 0x1009c100
and dword [ebp - 0x238], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x234], eax
push 0x2c
push dword [ebp - 0x20]
call fcn.10034918
pop ecx
pop ecx
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x1009c090
mov dword [ebp - 0x238], 1
jmp 0x1009c097
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 0x1009c0b9
and dword [ebp - 0x10], 0
jmp 0x1009c100
lea eax, [ebp - 0x22c]
push eax
call fcn.100746d2
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 0x1009c0de
jmp 0x1009c100
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 0x1009c0fb
and dword [ebp - 0x10], 0
jmp 0x1009c100
jmp 0x1009c055
cmp dword [ebp - 0x10], 0
jne 0x1009c16b
and dword [ebp - 0x23c], 0
jmp 0x1009c11c
mov eax, dword [ebp - 0x23c]
inc eax
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp - 0x23c]
cmp eax, dword [ebp - 0x14]
jge 0x1009c150
mov eax, dword [ebp - 0x23c]
mov ecx, dword [ebp - 0x24c]
push dword [ecx + eax*4 + 0x74]
call fcn.1007143d
pop ecx
mov eax, dword [ebp - 0x23c]
mov ecx, dword [ebp - 0x24c]
and dword [ecx + eax*4 + 0x74], 0
jmp 0x1009c10f
and dword [ebp - 0x244], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.1000abe4
mov eax, dword [ebp - 0x244]
jmp 0x1009c1cc
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.1000abe4
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.1006ef11
leave
ret