Function at 0x401d5c
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x46b59c
call fcn.0045b030
sub esp, 0xa1c
mov ax, word [0x489444]
push ebx
push esi
mov esi, ecx
push edi
mov word [ebp - 0x228], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x226]
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0x14], ebx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x20], 0x104
stosw word es:[edi], ax
jne 0x401db2
mov eax, dword [esi]
cmp dword [eax - 8], ebx
jne 0x401f65
cmp dword [esi + 0xc], ebx
je 0x401de9
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x228]
push edx
lea edx, [ebp - 0x1c]
push edx
push eax
push ecx
push dword [esi + 0x10]
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
test eax, eax
pop ecx
jne 0x401dfd
lea eax, [ebp - 0x228]
push 0x480438
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
pop ecx
pop ecx
lea eax, [ebp - 0x228]
test eax, eax
je 0x401e14
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x228]
push ecx
push eax
mov ecx, esi
call fcn.00403113
mov eax, dword [0x4802e0]
push 1
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], eax
call fcn.004030d2
test eax, eax
je 0x401e41
mov eax, dword [ebp - 0x10]
mov word [eax], 0x5c
lea eax, [ebp - 0x14]
push 1
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00402a7c
push dword [ebp - 0x10]
mov eax, dword [eax]
mov ebx, dword [sym.imp.MSVCRT.dll_wcscmp]
mov byte [ebp - 4], 1
push eax
call ebx
pop ecx
test eax, eax
pop ecx
je 0x401ec2
mov eax, dword [0x4802e0]
push 1
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], eax
call fcn.004030d2
test eax, eax
je 0x401e87
mov eax, dword [ebp + 0xc]
mov word [eax], 0x2f
lea eax, [ebp - 0x18]
push 1
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00402a7c
push dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call ebx
mov ebx, eax
pop ecx
neg ebx
pop ecx
sbb bl, bl
lea ecx, [ebp - 0x18]
inc bl
call fcn.00403037
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00403037
test bl, bl
je 0x401ec4
mov bl, 1
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00403037
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00403037
test bl, bl
je 0x401ef0
mov eax, dword [esi]
push 1
mov ecx, esi
mov eax, dword [eax - 8]
dec eax
push eax
call fcn.00402af2
lea eax, [ebp - 0xa28]
push 0x400
xor edi, edi
push eax
push edi
call fcn.004046d3
add esp, 0xc
xor ebx, ebx
cmp dword [esi + 8], edi
jle 0x401f21
lea eax, [ebp - 0xa28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
inc ebx
cmp ebx, dword [esi + 8]
jl 0x401f0e
push dword [esi]
lea eax, [ebp - 0xa28]
push eax
lea eax, [ebp - 0xa28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0xa28]
push eax
push edi
call fcn.00404680
pop ecx
test eax, eax
pop ecx
jne 0x401f65
mov ebx, 0x480438
mov eax, ebx
test eax, eax
je 0x401f5c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
push eax
mov ecx, esi
call fcn.00403113
mov ecx, dword [ebp + 8]
push esi
call fcn.00402892
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8