Function at 0x481b80
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x554b4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xce8
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ebx
test ebx, ebx
jne 0x481bd8
mov ecx, dword [esp + 0xd08]
lea eax, [esp + 0x2c]
push eax
push str.Import
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x481d67
jmp 0x481ec8
cmp ebx, 1
jne 0x481ec8
mov eax, dword [esp + 0xd08]
lea edx, [esp + 0x28]
push edx
push str.Export
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x481ec8
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x18], ecx
mov edi, ecx
mov esi, 0x3e8
lea edx, [esp + 0x910]
push esi
push edx
push 0
push edi
mov dword [esp + 0x34], 1
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x481ec1
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x910]
push eax
push ecx
push edi
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x481e9d
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x38]
lea eax, [esp + 0x528]
push edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push str.Extensions
push edx
call esi
test eax, eax
jne 0x481e8d
cmp dword [esp + 0x14], 1
jne 0x481e8d
lea eax, [esp + 0x34]
lea ecx, [esp + 0x140]
push eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x18]
push ecx
push edx
push 0
push str.Name
push eax
call esi
test eax, eax
jne 0x481e8d
cmp dword [esp + 0x14], 1
jne 0x481e8d
lea ecx, [esp + 0x30]
lea edx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x18]
push edx
push eax
push 0
push str.Path
push ecx
call esi
test eax, eax
jne 0x481e8d
cmp dword [esp + 0x14], 1
jne 0x481e8d
mov edx, dword [0x5c4dac]
mov dword [esp + 0x10], edx
mov al, byte [esp + 0x528]
mov dword [esp + 0xd00], 0
cmp al, 0x20
lea esi, [esp + 0x528]
jne 0x481d29
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
je 0x481d21
mov ecx, esi
mov al, byte [esi]
test al, al
je 0x481d77
cmp al, 0x20
jne 0x481d74
cmp byte [ecx], 0x20
je 0x481d55
push ecx
lea ecx, [esp + 0x14]
mov byte [esi], 0
call fcn.00541a11
push 0x5b8c14
lea ecx, [esp + 0x14]
call fcn.00541a11
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
jne 0x481d29
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
je 0x481d5d
jmp 0x481d29
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x18], edi
jmp 0x481c0b
inc esi
jmp 0x481d2b
mov al, byte [ecx]
test al, al
je 0x481d8b
cmp al, 0x20
je 0x481d8b
push ecx
lea ecx, [esp + 0x14]
call fcn.00541a11
lea ecx, [esp + 0x10]
call fcn.0053e91a
lea ecx, [esp + 0x10]
call fcn.0053e8ce
lea ecx, [esp + 0x10]
call fcn.00541b70
lea eax, [esp + 0x3c]
push eax
call fcn.00481b50
add esp, 4
cmp eax, 1
jne 0x481e75
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x481e75
mov ebx, dword [ebp + 8]
mov edi, 0
dec ebx
js 0x481e2b
mov edx, dword [ebp + 0x40]
mov ax, word [edx + edi*2]
cmp ax, word [esp + 0x20]
jne 0x481e20
mov eax, dword [ebp + 4]
lea esi, [edi*4]
add eax, esi
lea ecx, [esp + 0x140]
push ecx
mov eax, dword [eax]
push eax
call fcn.0052cc53
add esp, 8
test eax, eax
jne 0x481e20
mov eax, dword [ebp + 0x2c]
lea edx, [esp + 0x3c]
add eax, esi
push edx
mov eax, dword [eax]
push eax
call fcn.0052cc53
add esp, 8
test eax, eax
je 0x481e27
inc edi
cmp edi, ebx
jle 0x481dd6
jmp 0x481e2b
cmp edi, ebx
jle 0x481e71
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x140]
push ecx
push eax
mov ecx, ebp
call fcn.0054068a
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp + 0x14]
lea edx, [esp + 0x10]
push edx
push eax
call fcn.005406b6
mov eax, dword [ebp + 0x30]
lea ecx, [ebp + 0x28]
lea edx, [esp + 0x3c]
push edx
push eax
call fcn.0054068a
mov edx, dword [esp + 0x20]
mov eax, dword [ebp + 0x44]
lea ecx, [ebp + 0x3c]
push edx
push eax
call fcn.005409fb
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x10]
mov dword [esp + 0xd00], 0xffffffff
call fcn.00541681
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 0x3e8
mov ecx, dword [esp + 0x24]
push esi
mov eax, ecx
inc ecx
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x914]
push ecx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x481c32
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebx
cmp ebx, 1
mov dword [esp + 0x20], ebx
jle 0x481baf
mov ecx, dword [esp + 0xcf8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xcf4
ret 4