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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x103e010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov dword [ebp - 0x418], eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x428], eax
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x414], ax
xor ebx, ebx
lea eax, [ebp - 0x412]
push ebx
push eax
mov dword [ebp - 0x420], edi
call sub.msvcrt.dll_memset
xor eax, eax
push esi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
mov esi, 0x80070057
mov dword [ebp - 0x42c], ebx
cmp edi, ebx
jne 0x1037d32
mov eax, dword [section..data]
cmp eax, section..data
je 0x1037efd
test byte [eax + 0x1c], 1
je 0x1037efd
push 0x100713c
push 0x11
jmp 0x1037d5b
cmp dword [ebp - 0x418], ebx
jne 0x1037d6b
mov eax, dword [section..data]
cmp eax, section..data
je 0x1037efd
test byte [eax + 0x1c], 1
je 0x1037efd
push 0x100713c
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
jmp 0x1037efd
mov eax, dword [ebp - 0x418]
mov edi, 0x104
cmp dword [eax], ebx
jne 0x1037eb2
push dword [ebp - 0x420]
lea eax, [ebp - 0x414]
push 0x1007150
push edi
push eax
call fcn.0100878d
mov esi, eax
add esp, 0x10
cmp esi, ebx
jge 0x1037dc6
mov eax, dword [section..data]
cmp eax, section..data
je 0x1037efd
test byte [eax + 0x1c], 1
je 0x1037efd
push esi
push 0x100713c
push 0x13
jmp 0x1038048
lea eax, [ebp - 0x424]
xor esi, esi
push eax
inc esi
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x424], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
jne 0x1037df3
mov dword [ebp - 0x424], ebx
cmp dword [ebp - 0x424], ebx
je 0x1037e00
mov esi, 0x101
lea eax, [ebp - 0x41c]
push eax
push esi
push ebx
lea eax, [ebp - 0x414]
push eax
xor eax, eax
cmp dword [ebp + 0xc], ebx
setne al
add eax, 0x80000001
push eax
call dword [sym.imp.KERNEL32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x1037e81
cmp dword [ebp - 0x41c], ebx
je 0x1037e77
lea eax, [ebp - 0x42c]
push eax
push dword [ebp - 0x418]
mov dword [ebp - 0x42c], 4
push ebx
push 0x20000018
push 0x1005c10
push ebx
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_RegGetValueW]
push dword [ebp - 0x41c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_RegCloseKey]
mov dword [ebp - 0x41c], ebx
cmp esi, ebx
jne 0x1037e81
mov eax, dword [ebp - 0x418]
cmp dword [eax], ebx
jne 0x1037eb2
mov esi, 0x90070a02
mov eax, dword [section..data]
cmp eax, section..data
je 0x1037efd
test byte [eax + 0x1c], 4
je 0x1037efd
push dword [ebp - 0x420]
push 0x100713c
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008bcd
jmp 0x1037efd
cmp dword [ebp - 0x428], ebx
je 0x1038058
push edi
lea eax, [ebp - 0x20c]
push eax
cmp dword [ebp + 0xc], ebx
je 0x1037f10
push 0x1007230
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, ebx
je 0x1037ede
cmp eax, edi
jbe 0x1037f17
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1037ef2
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x1037efd
mov esi, 0x80004005
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.010084d5
leave
ret 0x10
push 0x1007210
jmp 0x1037ed0
push 0x10071fc
lea eax, [ebp - 0x20c]
push eax
call fcn.01037b81
mov esi, eax
cmp esi, ebx
jge 0x1037f4d
mov eax, dword [section..data]
cmp eax, section..data
je 0x1037efd
test byte [eax + 0x1c], 1
je 0x1037efd
push esi
push 0x100713c
push 0x15
jmp 0x1038048
push dword [ebp - 0x420]
lea eax, [ebp - 0x20c]
push eax
call fcn.01037b81
mov esi, eax
cmp esi, ebx
jge 0x1037f84
mov eax, dword [section..data]
cmp eax, section..data
je 0x1037efd
test byte [eax + 0x1c], 1
je 0x1037efd
push esi
push 0x100713c
push 0x16
jmp 0x1038048
push 0x10071f4
lea eax, [ebp - 0x20c]
push eax
call fcn.01037b81
mov esi, eax
cmp esi, ebx
jge 0x1037fc2
mov eax, dword [section..data]
cmp eax, section..data
je 0x1037efd
test byte [eax + 0x1c], 1
je 0x1037efd
push esi
push 0x100713c
push 0x17
jmp 0x1038048
push 0x10071e0
lea eax, [ebp - 0x20c]
push eax
call fcn.01037b81
mov esi, eax
cmp esi, ebx
jge 0x1037ffd
mov eax, dword [section..data]
cmp eax, section..data
je 0x1037efd
test byte [eax + 0x1c], 1
je 0x1037efd
push esi
push 0x100713c
push 0x18
jmp 0x1038048
mov eax, dword [ebp - 0x418]
push dword [eax]
lea eax, [ebp - 0x20c]
push eax
push 0x10071c4
push edi
push dword [ebp - 0x428]
call fcn.0100878d
mov esi, eax
add esp, 0x14
cmp esi, ebx
jge 0x1038058
mov eax, dword [section..data]
cmp eax, section..data
je 0x1037efd
test byte [eax + 0x1c], 1
je 0x1037efd
push esi
push 0x100713c
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
jmp 0x1037efd
xor esi, esi
jmp 0x1037efd