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

Disassembly:
sub esp, 0x41c
mov eax, dword [0x62fda0]
xor eax, esp
mov dword [esp + 0x418], eax
mov ecx, dword [0x630a04]
push ebx
push esi
push edi
mov edi, dword [esp + 0x42c]
mov ebx, str..._xutil.cpp
test ecx, ecx
je 0x4ea06b
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x14
jl 0x4ea06b
mov eax, edi
test edi, edi
jne 0x4ea044
mov eax, str._null_
push eax
lea eax, [esp + 0x10]
push str._ENTERING__PzGetenv_name_s_
push eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], 0x277
mov dword [esp + 0x20], 0x14
call fcn.004e1a20
add esp, 0xc
push edi
call dword [sym.imp.MSVCR90.dll_getenv]
mov esi, eax
add esp, 4
test esi, esi
je 0x4ea129
mov eax, dword [0x630a20]
test eax, eax
je 0x4ea092
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4ea097
sub eax, edx
inc eax
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
mov edx, eax
add esp, 4
mov dword [0x630a20], edx
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4ea0b7
mov ecx, dword [0x630a04]
test ecx, ecx
je 0x4ea10c
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0x28
jl 0x4ea10c
mov eax, dword [0x630a20]
test eax, eax
jne 0x4ea0e5
mov eax, str._null_
mov dword [esp + 0x10], 0x284
push eax
lea ecx, [esp + 0x10]
push str._EXITING__PzGetenv__:__s
push ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], 0x28
call fcn.004e1a20
add esp, 0xc
mov eax, dword [0x630a20]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.005bd2c6
add esp, 0x41c
ret
lea edx, [esp + 0x1c]
push edx
push 0x20019
push 0
push str.SoftwareZUKENCR_5000_Runtime12.0
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4ea239
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push 0
push edi
push edx
mov dword [esp + 0x38], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4ea1f2
mov eax, dword [0x630a20]
test eax, eax
je 0x4ea186
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, dword [esp + 0x20]
inc eax
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
lea ecx, [esp + 0x28]
mov edx, eax
mov dword [0x630a20], eax
mov eax, ecx
add esp, 4
sub edx, eax
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x4ea1a4
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [0x630a04]
test ecx, ecx
je 0x4ea10c
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0x28
jl 0x4ea10c
mov eax, dword [0x630a20]
test eax, eax
jne 0x4ea1e5
mov eax, str._null_
mov dword [esp + 0x10], 0x29d
jmp 0x4ea0ed
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [0x630a04]
test ecx, ecx
je 0x4ea239
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x28
jl 0x4ea239
lea eax, [esp + 0xc]
push str._EXITING__PzGetenv__:_NULL
push eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], 0x295
mov dword [esp + 0x1c], 0x28
call fcn.004e1a20
add esp, 8
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.005bd2c6
add esp, 0x41c
ret