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

Disassembly:
push 0x80
mov eax, 0x45d67d
call fcn.0043aa77
mov esi, dword [ebp + 0x10]
xor ebx, ebx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x8c], ecx
lea ecx, [ebp - 0x68]
push eax
mov dword [esi], ebx
call fcn.0041407d
xor eax, eax
mov dword [ebp - 4], ebx
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
push ebx
push 0x40655c
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 1
call fcn.0042217f
mov edi, eax
cmp edi, 0xffffffff
je 0x438a67
lea eax, [ebp - 0x85]
push eax
push edi
push ebx
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x50]
call fcn.00415a6d
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x85]
sub eax, edi
mov byte [ebp - 4], 2
push ecx
dec eax
lea ecx, [ebp - 0x80]
push eax
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00415a6d
push 0x406578
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 3
call fcn.0041a6d1
test eax, eax
je 0x438aac
push 0x4065d4
lea ecx, [ebp - 0x50]
call fcn.0041a6d1
test eax, eax
je 0x438aac
push 0x40656c
lea ecx, [ebp - 0x50]
call fcn.0041a6d1
test eax, eax
je 0x438aa5
push 0x4065b0
lea ecx, [ebp - 0x50]
call fcn.0041a6d1
test eax, eax
je 0x438aa5
push 0x406560
lea ecx, [ebp - 0x50]
call fcn.0041a6d1
test eax, eax
je 0x438a9e
push 0x40658c
lea ecx, [ebp - 0x50]
call fcn.0041a6d1
test eax, eax
je 0x438a9e
push 0x406584
lea ecx, [ebp - 0x50]
call fcn.0041a6d1
test eax, eax
je 0x438a97
push 0x4065fc
lea ecx, [ebp - 0x50]
call fcn.0041a6d1
test eax, eax
je 0x438a97
lea ecx, [ebp - 0x80]
call fcn.00415705
lea ecx, [ebp - 0x50]
call fcn.00415705
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x438a88
mov eax, dword [ebp - 0x1c]
sub eax, ecx
and eax, 0xfffffffe
push eax
push ecx
call fcn.00413f56
pop ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
pop ecx
lea ecx, [ebp - 0x68]
call fcn.00415705
xor al, al
jmp 0x438bb6
mov eax, 0x80000003
jmp 0x438ab1
mov eax, 0x80000000
jmp 0x438ab1
mov eax, 0x80000001
jmp 0x438ab1
mov eax, 0x80000002
cmp dword [ebp - 0x6c], 8
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x84], ebx
mov byte [ebp - 0x85], bl
jb 0x438ac9
mov ecx, dword [ebp - 0x80]
lea edx, [ebp - 0x84]
push edx
push 0x20019
push ebx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x438b77
mov edi, dword [ebp - 0x8c]
lea eax, [ebp - 0x2c]
push eax
push ebx
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 4
push eax
push ebx
push edi
push dword [ebp - 0x84]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x438b6b
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x438b6b
cmp dword [ebp - 0x18], 1
je 0x438bbc
cmp dword [ebp - 0x18], 2
je 0x438bbc
cmp dword [ebp - 0x18], 4
jne 0x438b6b
cmp eax, 4
jne 0x438b6b
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x28], ebx
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push edi
push dword [ebp - 0x84]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x438b6b
mov eax, dword [ebp - 0x28]
mov dword [esi], 2
mov dword [esi + 0x1c], eax
mov byte [ebp - 0x85], 1
push dword [ebp - 0x84]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x80]
call fcn.00415705
lea ecx, [ebp - 0x50]
call fcn.00415705
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x438ba8
mov eax, dword [ebp - 0x1c]
sub eax, ecx
and eax, 0xfffffffe
push eax
push ecx
call fcn.00413f56
pop ecx
pop ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
lea ecx, [ebp - 0x68]
call fcn.00415705
mov al, byte [ebp - 0x85]
call fcn.0043a9c9
ret
xor ecx, ecx
mov word [ebp - 0x26], cx
lea ecx, [ebp - 0x26]
push ecx
push eax
lea ecx, [ebp - 0x24]
call fcn.0042b2ba
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x24]
lea eax, [ebp - 0x18]
push eax
push ebx
push edi
push dword [ebp - 0x84]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x438b6b
inc eax
cmp dword [ebp - 0x18], eax
jne 0x438c08
push dword [ebp - 0x24]
lea ecx, [esi + 4]
mov dword [esi], eax
call fcn.0041573e
jmp 0x438b64
push ebx
push ebx
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, eax
mov dword [ebp - 0x8c], ecx
test ecx, ecx
je 0x438b6b
lfence
xor eax, eax
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov word [ebp - 0x26], ax
lea eax, [ebp - 0x26]
push eax
push ecx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
call fcn.004157f9
push dword [ebp - 0x8c]
mov byte [ebp - 4], 5
lfence
push dword [ebp - 0x38]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x438c7f
push dword [ebp - 0x38]
lea ecx, [esi + 4]
mov dword [esi], 1
call fcn.0041573e
mov byte [ebp - 0x85], 1
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x438b6b
mov eax, dword [ebp - 0x30]
sub eax, ecx
and eax, 0xfffffffe
push eax
push ecx
call fcn.00413f56
pop ecx
pop ecx
jmp 0x438b6b