Function at 0x40dcc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a41bc
mov eax, dword fs:[0]
push eax
mov eax, 0x8610
call fcn.004e4700
mov eax, dword [0x5f1014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.a_1__n
call fcn.004022e0
add esp, 4
lea eax, [ebp - 0x8618]
push eax
push 0xf003f
push 0
push str.SYSTEMControlSet001ControlSession_ManagerEnvironment
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40df47
mov dword [ebp - 0x8614], eax
lea eax, [ebp - 0x8614]
push eax
push 0
push 0
push 0
push str.Path
push dword [ebp - 0x8618]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40dd5c
push dword [ebp - 0x8618]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40df47
mov eax, dword [ebp - 0x8614]
inc eax
push eax
call fcn.004e3b5f
mov ecx, dword [ebp - 0x8614]
add esp, 4
inc ecx
mov esi, eax
push ecx
push 0
push esi
call fcn.0057b850
add esp, 0xc
lea eax, [ebp - 0x8614]
push eax
push esi
push 0
push 0
push str.Path
push dword [ebp - 0x8618]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40ddbe
push dword [ebp - 0x8618]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
push esi
call fcn.004e38ad
add esp, 8
jmp 0x40df47
push esi
lea ecx, [ebp - 0x148]
call fcn.0040c030
mov dword [ebp - 4], 0
push 1
push esi
call fcn.004e38ad
lea ecx, [ebp - 0x148]
call fcn.0040c530
test al, al
je 0x40ddf4
push ecx
lea ecx, [ebp - 0x148]
call fcn.0040c260
push 0x104
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.0057b850
add esp, 0xc
lea eax, [ebp - 0x118]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x8610]
call fcn.004074c0
lea ecx, [ebp - 0x8610]
call fcn.004076b0
push eax
lea ecx, [ebp - 0x208]
call fcn.0040c030
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x8610]
call fcn.004076a0
push eax
lea ecx, [ebp - 0x1d8]
call fcn.0040c030
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1a8]
push esi
push ecx
mov ecx, eax
call fcn.0040c170
mov byte [ebp - 4], 3
push ecx
lea ecx, [ebp - 0x178]
push ecx
mov ecx, eax
call fcn.0040c0c0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1a8]
call fcn.0040c2c0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1d8]
call fcn.0040c2c0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x208]
call fcn.0040c2c0
cmp dword [ebp + 8], 0
je 0x40decf
lea eax, [ebp - 0x178]
push eax
lea ecx, [ebp - 0x148]
call fcn.0040c270
push 0
push 0
push 0x1a
push 0xffff
mov dword [ebp - 0x861c], 0
call dword [sym.imp.USER32.dll_PostMessageA]
mov esi, dword [sym.imp.USER32.dll_SendMessageTimeoutA]
lea eax, [ebp - 0x861c]
push eax
push 0xa
push 0
push str.Environment
push 0
push 0x1a
push 0xffff
call esi
lea eax, [ebp - 0x861c]
push eax
push 0xa
push 8
push str.Environment
push 0
push 0x1a
push 0xffff
call esi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x178]
call fcn.0040c2c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x148]
call fcn.0040c2c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e389c
mov esp, ebp
pop ebp
ret 4