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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x4497b8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov eax, ecx
cmp dword [eax], 0
mov ecx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], edi
jne 0x419d6e
lea ecx, [ebp - 0x11]
call fcn.00419b83
mov al, byte [eax]
mov byte [ebp - 0x12], al
push 0x4438bc
lea eax, [ebp - 0x12]
push eax
call fcn.0042fb98
xor esi, esi
lea edx, [ebp - 0x24]
push edx
push esi
lea edx, [ebp - 0x20]
push edx
push esi
push ecx
push dword [eax]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x419da5
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040e7a2
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
push 0x4421bc
lea eax, [ebp - 0x18]
jmp 0x419d68
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x419f2f
cmp eax, 2
jbe 0x419dbe
cmp eax, 4
jne 0x419f2f
push dword [ebp - 0x24]
call fcn.004308b5
mov esi, eax
pop ecx
test esi, esi
jne 0x419de1
lea ecx, [ebp - 0x11]
call fcn.0040e77c
mov al, byte [eax]
mov byte [ebp - 0x12], al
push 0x442184
jmp 0x419d65
lea eax, [ebp - 0x24]
push eax
push esi
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push 0
push dword [ebp - 0x18]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x419e19
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040e7a2
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push 0x4421bc
lea eax, [ebp - 0x1c]
jmp 0x419d68
mov eax, dword [ebp - 0x20]
dec eax
je 0x419f09
dec eax
je 0x419e79
dec eax
dec eax
je 0x419e41
lea ecx, [ebp - 0x25]
call fcn.0040f377
mov al, byte [eax]
mov byte [ebp - 0x12], al
push 0x4427c0
jmp 0x419d65
push dword [esi]
lea eax, [ebp - 0x10]
push 0x401740
push 0xffffffffffffffff
push eax
call fcn.0040e816
lea edx, [ebp - 0x10]
add esp, 0x10
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x419e5c
sub edx, ecx
push edx
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.0040d373
and dword [edi], 0
jmp 0x419f17
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov ebx, eax
test ebx, ebx
jne 0x419ea0
push esi
call fcn.0042fa44
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x38]
jmp 0x419e02
push ebx
call fcn.004308b5
mov edi, eax
pop ecx
test edi, edi
jne 0x419ec7
lea ecx, [ebp - 0x13]
call fcn.0040e77c
mov al, byte [eax]
mov byte [ebp - 0x11], al
push 0x442184
lea eax, [ebp - 0x11]
jmp 0x419d68
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x419ef3
cmp eax, ebx
ja 0x419ef3
mov ecx, dword [ebp - 0x30]
push edi
call fcn.0040d3e8
mov eax, dword [ebp - 0x2c]
push edi
mov dword [eax], 2
call fcn.0042fa44
pop ecx
jmp 0x419f17
push esi
call fcn.0042fa44
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x34]
jmp 0x419d91
push esi
mov ecx, ebx
call fcn.0040d3e8
mov dword [edi], 1
push esi
call fcn.0042fa44
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042fb8a
leave
ret 0xc
lea ecx, [ebp - 0x13]
call fcn.0040f377
mov al, byte [eax]
mov byte [ebp - 0x11], al
push 0x4427c0
jmp 0x419ebf