Function at 0x4055d6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48b408
mov eax, dword fs:[0]
push eax
sub esp, 0x528
mov eax, dword [0x4c6018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x127]
mov dword [ebp - 4], 2
push ebx
push eax
mov dword [ebp - 0x52c], ebx
mov byte [ebp - 0x128], bl
call sub.MSVCR100.dll_memset
mov eax, dword [ebp + 8]
dec eax
add esp, 0xc
mov dword [ebp - 0x530], 0x104
cmp eax, 4
ja case.default.0x4055cf
jmp dword [eax*4 + 0x405800]
mov eax, SysReAllocString
jmp 0x4055f7
mov eax, SysReAllocString
jmp 0x4055f7
mov eax, reloc.OLEAUT32.dll_SysReAllocString
jmp 0x4055f7
mov eax, SysStringLen
jmp 0x4055f7
mov eax, SysStringLen
mov ecx, dword [ebp + 0xc]
mov esi, 0x10
cmp dword [ebp + 0x20], esi
jae 0x405607
lea ecx, [ebp + 0xc]
lea edx, [ebp - 0x534]
push edx
push 0x20019
push ebx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405790
mov eax, dword [ebp + 0x28]
cmp dword [ebp + 0x3c], esi
jae 0x40562f
lea eax, [ebp + 0x28]
lea ecx, [ebp - 0x530]
push ecx
lea edx, [ebp - 0x128]
push edx
mov edx, dword [ebp - 0x534]
lea ecx, [ebp - 0x52c]
push ecx
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405790
cmp dword [ebp - 0x52c], 3
jne 0x405743
push 0x3ff
lea eax, [ebp - 0x527]
push ebx
push eax
mov byte [ebp - 0x528], bl
call sub.MSVCR100.dll_memset
mov ecx, dword [0x4b9de8]
mov edx, dword [0x4b9dec]
mov edi, dword [ebp - 0x530]
mov eax, dword [0x4b9df0]
mov dword [ebp - 0x24], ecx
mov ecx, dword [0x4b9df4]
mov dword [ebp - 0x20], edx
mov dl, byte [0x4b9df8]
add esp, 0xc
xor esi, esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x14], dl
cmp edi, ebx
jle 0x4056e6
lea ecx, [ebp - 0x528]
movzx eax, byte [ebp + esi - 0x128]
mov edx, eax
shr edx, 4
mov dl, byte [ebp + edx - 0x24]
and eax, 0xf
mov al, byte [ebp + eax - 0x24]
mov byte [ecx], dl
mov byte [ecx + 1], al
inc esi
add ecx, 2
cmp esi, edi
jl 0x4056c1
cmp dword [ebp + 0x58], 0x10
mov eax, dword [ebp + 0x44]
jae 0x4056f2
lea eax, [ebp + 0x44]
push eax
lea ecx, [ebp - 0x528]
push ecx
call dword [sym.imp.MSVCR100.dll__stricmp]
add esp, 8
lea ecx, [ebp + 0xc]
test eax, eax
jne 0x405729
call fcn.00401fc0
lea ecx, [ebp + 0x28]
call fcn.00401fc0
lea ecx, [ebp + 0x44]
call fcn.00401fc0
mov eax, 1
jmp 0x4057df
call fcn.00401fc0
lea ecx, [ebp + 0x28]
call fcn.00401fc0
lea ecx, [ebp + 0x44]
call fcn.00401fc0
jmp 0x4057dd
lea edx, [ebp + 0x44]
push edx
call fcn.004059d0
mov eax, dword [ebp + 0x44]
cmp dword [ebp + 0x58], esi
jae 0x405757
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.MSVCR100.dll__stricmp]
add esp, 8
lea ecx, [ebp + 0xc]
test eax, eax
jne 0x405729
call fcn.00401fc0
lea ecx, [ebp + 0x28]
call fcn.00401fc0
lea ecx, [ebp + 0x44]
call fcn.00401fc0
mov eax, 1
jmp 0x4057df
mov esi, 0x10
cmp dword [ebp + 0x20], esi
jb 0x4057a2
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov edi, 0xf
mov dword [ebp + 0x20], edi
mov dword [ebp + 0x1c], ebx
mov byte [ebp + 0xc], bl
cmp dword [ebp + 0x3c], esi
jb 0x4057c2
mov edx, dword [ebp + 0x28]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp + 0x3c], edi
mov dword [ebp + 0x38], ebx
mov byte [ebp + 0x28], bl
cmp dword [ebp + 0x58], esi
jb 0x4057dd
mov eax, dword [ebp + 0x44]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00449013
mov esp, ebp
pop ebp
ret 0x58