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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0x101724c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.010101fe
test eax, eax
je 0x1010a43
push ebx
push edi
push 0xeb8
xor ebx, ebx
push ebx
push dword [esi + 0x3c]
call sub.msvcrt.dll_memset
mov eax, dword [esi + 0x3c]
add esp, 0xc
push 0x200
add eax, 0x18
push eax
call fcn.010133d0
push 0x1003370
mov edi, 0x104
push edi
lea eax, [ebp - 0x61c]
push eax
call fcn.010065a9
xor eax, eax
mov word [ebp - 0x20c], ax
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x10037d4
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [esi + 0x3c]
add eax, 0x18
push eax
push edi
lea eax, [ebp - 0x61c]
push eax
call fcn.010083e7
lea eax, [ebp - 0x620]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x61c]
push eax
push 0x80000002
call fcn.0100fbf7
test eax, eax
jne 0x101063d
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push ebx
push 0x1003858
push dword [ebp - 0x620]
mov dword [ebp - 0x624], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor eax, eax
mov word [ebp - 6], ax
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.010129ef
jmp 0x10106fb
lea eax, [ebp - 0x620]
push eax
push 0x20019
push ebx
push 0x1003370
push 0x80000002
call fcn.0100fbf7
test eax, eax
jne 0x1010707
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push ebx
push 0x1003834
push dword [ebp - 0x620]
mov dword [ebp - 0x624], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10106fb
mov word [ebp - 6], ax
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.010129ef
push 0x10032a4
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.010083e7
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x414]
push eax
push ebx
push ebx
push 0x100380c
push dword [ebp - 0x620]
mov dword [ebp - 0x628], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor eax, eax
mov word [ebp - 0x20e], ax
lea eax, [ebp - 0x414]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.010083e7
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [esi + 0x3c]
push edi
add eax, 0x418
push eax
call fcn.010065a9
mov eax, dword [esi + 0x3c]
lea ecx, [eax + 0x418]
push ecx
push edi
add eax, 0x620
push eax
call fcn.010065a9
mov eax, dword [esi + 0x3c]
push 0x10032a4
push edi
add eax, 0x620
push eax
call fcn.010083e7
mov eax, dword [esi + 0x3c]
push 0x10037f4
push edi
add eax, 0x620
push eax
call fcn.010083e7
lea eax, [ebp - 0x62c]
push eax
mov ecx, esi
call fcn.0100fda0
mov dword [ebp - 0x628], eax
lea eax, [ebp - 0x620]
push eax
push 0x20019
push ebx
push 0x10033f8
push dword [ebp - 0x62c]
call fcn.0100fbf7
test eax, eax
jne 0x101083b
lea eax, [ebp - 0x624]
push eax
mov eax, dword [esi + 0x3c]
add eax, 0x828
push eax
push ebx
push ebx
push 0x1003484
push dword [ebp - 0x620]
mov dword [ebp - 0x624], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x624]
push eax
mov eax, dword [esi + 0x3c]
add eax, 0xa30
push eax
push ebx
push ebx
push 0x1003354
push dword [ebp - 0x620]
mov dword [ebp - 0x624], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x624]
push eax
mov eax, dword [esi + 0x3c]
add eax, 0xc38
push eax
push ebx
push ebx
push 0x1003354
push dword [ebp - 0x620]
mov dword [ebp - 0x624], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esi + 0x3c]
push 0x10037ec
push edi
add eax, 0xc38
push eax
call fcn.010083e7
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x628], ebx
je 0x101084e
push dword [ebp - 0x62c]
call fcn.0100fde0
mov eax, dword [esi + 0x3c]
lea ecx, [eax + 0x418]
push ecx
push edi
add eax, 0x828
push eax
call fcn.01010382
mov eax, dword [esi + 0x3c]
lea ecx, [eax + 0x418]
push ecx
push edi
add eax, 0xa30
push eax
call fcn.01010382
mov eax, dword [esi + 0x3c]
lea ecx, [eax + 0x418]
push ecx
push edi
add eax, 0xc38
push eax
call fcn.01010382
mov eax, dword [esi + 0x3c]
push edi
add eax, 0x828
push eax
call fcn.010129ef
mov eax, dword [esi + 0x3c]
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov eax, dword [esi + 0x3c]
mov dword [eax + 0x10], ebx
mov eax, dword [esi + 0x3c]
mov dword [eax + 0x14], ebx
mov eax, dword [esi + 0x3c]
push 1
mov dword [eax + 0xe40], ebx
mov eax, dword [esi + 0x3c]
mov edi, 0x10036ac
push edi
push 0x1003538
add eax, 0xe44
push eax
mov ecx, esi
call fcn.01010165
mov eax, dword [esi + 0x3c]
push 1
push edi
push 0x1003570
add eax, 0xe48
push eax
mov ecx, esi
call fcn.01010165
mov eax, dword [esi + 0x3c]
push 1
push edi
push 0x10035b8
add eax, 0xe4c
push eax
mov ecx, esi
call fcn.01010165
mov eax, dword [esi + 0x3c]
push 1
push edi
push 0x10035ec
add eax, 0xe50
push eax
mov ecx, esi
call fcn.01010165
mov eax, dword [esi + 0x3c]
push 1
push edi
push 0x1003624
add eax, 0xe54
push eax
mov ecx, esi
call fcn.01010165
mov eax, dword [esi + 0x3c]
push ebx
push edi
push 0x1003660
add eax, 0xe58
push eax
mov ecx, esi
call fcn.01010165
mov eax, dword [esi + 0x3c]
push 1
push edi
push 0x10036c0
add eax, 0xe5c
push eax
mov ecx, esi
call fcn.01010165
mov eax, dword [esi + 0x3c]
push 1
push edi
push 0x1003718
add eax, 0xe60
push eax
mov ecx, esi
call fcn.01010165
mov eax, dword [esi + 0x3c]
push 1
push edi
push 0x1003740
add eax, 0xe64
push eax
mov ecx, esi
call fcn.01010165
mov eax, dword [esi + 0x3c]
push 1
push edi
push 0x1003778
add eax, 0xe68
push eax
mov ecx, esi
call fcn.01010165
push 2
push 0x10037c4
push 0x10034c4
mov edi, 0x1001318
push edi
lea eax, [ebp - 0x628]
push eax
mov eax, dword [esi + 0x3c]
add eax, 0xe6c
push eax
mov ecx, esi
mov dword [ebp - 0x628], 0x40
call fcn.0101024c
mov eax, dword [esi + 0x3c]
push ebx
push 0x10034d8
push edi
add eax, 0xeac
push eax
mov ecx, esi
call fcn.01010198
mov eax, dword [esi + 0x3c]
push ebx
push 0x10034f4
push edi
add eax, 0xeb0
push eax
mov ecx, esi
call fcn.01010198
mov eax, dword [esi + 0x3c]
push ebx
push 0x1003514
push edi
add eax, 0xeb4
push eax
mov ecx, esi
call fcn.01010198
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [esi + 0x3c]
xor edi, edi
inc edi
mov ecx, esi
mov dword [eax], edi
call fcn.0101021c
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0100f329
leave
ret