Function at 0x100b380
Capabilities:
Query environment variable
Query or enumerate registry value
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100cae0
push 0x10073b6
mov eax, dword fs:[0]
push eax
add esp, 0xfffffd98
mov eax, dword [0x100e1b0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x22c], 0x104
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x230], 0x409
mov dword [ebp - 4], 0
lea eax, [ebp - 0x250]
push eax
push 0x20019
push 0
push 0x1004168
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0
je 0x100b455
jmp 0x100b9c1
lea ecx, [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x228]
push edx
push 0
push 0
push 0x1001d00
mov eax, dword [ebp - 0x250]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0
je 0x100b48d
jmp 0x100b9c1
push 0x1004150
push 0x1004134
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x240], eax
push 0x1004120
push 0x1004134
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x240], 0
je 0x100b4d9
cmp dword [ebp - 0x254], 0
jne 0x100b4e8
mov dword [ebp - 0x248], 1
jmp 0x100b688
push 0
push 0
call dword [ebp - 0x254]
mov dword [ebp - 0x238], eax
mov ecx, dword [ebp - 0x238]
mov dword [ebp - 0x22c], ecx
lea edx, [ebp - 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x22c]
lea edx, [ecx + eax + 2]
mov dword [ebp - 0x22c], edx
cmp dword [ebp - 0x24c], 0
je 0x100b592
mov dword [ebp - 0x258], 0
mov eax, dword [ebp - 0x22c]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x24c]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x258], 0
jne 0x100b584
mov edx, dword [ebp - 0x24c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 0x24c], 0
jmp 0x100b590
mov eax, dword [ebp - 0x258]
mov dword [ebp - 0x24c], eax
jmp 0x100b5b0
mov ecx, dword [ebp - 0x22c]
shl ecx, 1
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0
je 0x100b5d3
mov edx, dword [ebp - 0x24c]
push edx
mov eax, dword [ebp - 0x22c]
push eax
call dword [ebp - 0x254]
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x24c], 0
je 0x100b5ee
mov ecx, dword [ebp - 0x238]
cmp ecx, dword [ebp - 0x22c]
jae 0x100b4e8
cmp dword [ebp - 0x24c], 0
je 0x100b604
mov edx, dword [ebp - 0x24c]
movzx eax, word [edx]
test eax, eax
jne 0x100b62c
lea ecx, [ebp - 0x228]
push ecx
call dword [ebp - 0x240]
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0
jne 0x100b62a
mov dword [ebp - 0x248], 1
jmp 0x100b688
push 0xffffffffffffffff
lea edx, [ebp - 0x228]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x24c]
push eax
push 1
mov ecx, dword [ebp - 0x230]
push ecx
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
je 0x100b67e
mov dword [ebp - 0x248], 1
mov edx, dword [ebp - 0x24c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 0x24c], 0
jmp 0x100b688
mov dword [ebp - 0x234], 1
cmp dword [ebp - 0x248], 0
je 0x100b9c1
push 0
push 0
push 0x1002350
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x238], eax
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0
jne 0x100b6dc
lea ecx, [ebp - 0x228]
push ecx
push 0x1002350
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [ebp - 0x234], eax
jmp 0x100b9c1
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x25c], 0
lea edx, [ebp - 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x260], eax
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [ebp - 0x22c]
lea eax, [edx + eax + 2]
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x24c], 0
je 0x100b7aa
mov dword [ebp - 0x26c], 0
mov ecx, dword [ebp - 0x22c]
shl ecx, 1
push ecx
mov edx, dword [ebp - 0x24c]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov dword [ebp - 0x26c], eax
cmp dword [ebp - 0x26c], 0
jne 0x100b79c
mov eax, dword [ebp - 0x24c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 0x24c], 0
jmp 0x100b7a8
mov ecx, dword [ebp - 0x26c]
mov dword [ebp - 0x24c], ecx
jmp 0x100b7c8
mov edx, dword [ebp - 0x22c]
shl edx, 1
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0
je 0x100b7f0
mov eax, dword [ebp - 0x22c]
push eax
mov ecx, dword [ebp - 0x24c]
push ecx
push 0x1002350
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x24c], 0
je 0x100b80b
mov edx, dword [ebp - 0x238]
cmp edx, dword [ebp - 0x22c]
jae 0x100b710
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x264], eax
mov ecx, dword [ebp - 0x238]
add ecx, 1
mov dword [ebp - 0x25c], ecx
cmp dword [ebp - 0x268], 0
jne 0x100b927
mov edx, dword [ebp - 0x25c]
cmp edx, dword [ebp - 0x260]
jb 0x100b927
mov dword [ebp - 0x274], 0
mov dword [ebp - 0x270], 0
mov word [ebp - 0x278], 0
mov eax, dword [ebp - 0x274]
mov ecx, dword [ebp - 0x264]
mov dx, word [ecx + eax*2]
mov word [ebp - 0x278], dx
movzx eax, word [ebp - 0x278]
mov ecx, dword [ebp - 0x274]
movzx edx, word [ebp + ecx*2 - 0x228]
xor ecx, ecx
cmp eax, edx
sete cl
mov dword [ebp - 0x270], ecx
cmp dword [ebp - 0x270], 0
je 0x100b8c8
mov edx, dword [ebp - 0x260]
sub edx, 1
cmp dword [ebp - 0x274], edx
jne 0x100b8b7
jmp 0x100b8c8
mov eax, dword [ebp - 0x274]
add eax, 1
mov dword [ebp - 0x274], eax
jmp 0x100b862
cmp dword [ebp - 0x270], 0
je 0x100b8dd
mov dword [ebp - 0x268], 1
jmp 0x100b904
mov ecx, dword [ebp - 0x260]
sub ecx, 1
cmp dword [ebp - 0x274], ecx
jne 0x100b904
movzx edx, word [ebp - 0x278]
cmp edx, 0x3b
jne 0x100b904
mov dword [ebp - 0x268], 1
mov eax, dword [ebp - 0x264]
add eax, 2
mov dword [ebp - 0x264], eax
mov ecx, dword [ebp - 0x25c]
sub ecx, 1
mov dword [ebp - 0x25c], ecx
jmp 0x100b826
cmp dword [ebp - 0x268], 0
je 0x100b93f
mov dword [ebp - 0x234], 1
jmp 0x100b9c1
mov edx, dword [ebp - 0x22c]
shl edx, 1
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x24c], 0
je 0x100b9c1
cmp dword [ebp - 0x23c], 0
je 0x100b9c1
lea eax, [ebp - 0x228]
push eax
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x100251c
mov edx, dword [ebp - 0x23c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [ebp - 0x24c]
push eax
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov edx, dword [ebp - 0x23c]
push edx
push 0x1002350
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [ebp - 0x234], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.0100b9cf
jmp 0x100ba38
mov eax, dword [ebp - 0x234]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.01006ce8
mov esp, ebp
pop ebp
ret