Function at 0x404b00
Capabilities:
Get file attributes
Query or enumerate registry value
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x45013d
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x46c8b0]
xor eax, esp
mov dword [esp + 0x144], eax
push ebp
push esi
push edi
mov eax, dword [0x46c8b0]
xor eax, esp
push eax
lea eax, [esp + 0x158]
mov dword fs:[0], eax
mov dword [esp + 0x160], 1
mov dword [esp + 0x34], 0x104
call fcn.00417b8f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404b67
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x20]
push ecx
push 1
push 0
push str.SoftWareTopThemesXPThemeXPSettings
push SysReAllocStringLen
mov byte [esp + 0x174], 2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404e6f
lea ecx, [esp + 0x38]
call fcn.00424885
mov edi, dword [esp + 0x168]
push 0
push edi
lea ecx, [esp + 0x40]
mov byte [esp + 0x168], 3
call fcn.00424911
test eax, eax
je 0x404c10
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x38]
mov byte [esp + 0x160], 2
call fcn.004248a9
lea eax, [esi - 0x10]
mov byte [esp + 0x160], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404c08
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
jmp 0x404e9d
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x54]
push edx
push 0
push 0
push str.AppPath
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404e53
call fcn.00417b8f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404c50
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x18]
push 0x455b70
push edx
mov byte [esp + 0x16c], 4
call fcn.004013d0
add esp, 0xc
lea ecx, [esp + 0x14]
call fcn.00403ed0
push str.category.ini
push str.topthemesxp.exe
lea ecx, [esp + 0x1c]
call fcn.00403cc0
mov esi, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
and eax, 0xfffffffc
push eax
push esi
call ebp
test eax, eax
je 0x404cf9
lea ecx, [esp + 0x24]
call fcn.004193d5
push 0
push 0x41
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x16c], 5
call fcn.0041977f
test eax, eax
jne 0x404d39
push eax
push eax
push str.Fail_category_setting
call fcn.00417f23
mov byte [esp + 0x160], 4
lea ecx, [esp + 0x24]
call fcn.004194a9
lea ecx, [esp + 0x14]
call fcn.00401170
lea ecx, [esp + 0x38]
mov byte [esp + 0x160], 2
call fcn.004248a9
lea ecx, [esp + 0x18]
call fcn.00401170
lea ecx, [esp + 0x168]
call fcn.00401170
lea ecx, [esp + 0x16c]
call fcn.00401170
jmp 0x404eec
lea ecx, [esp + 0x10]
call fcn.00401250
push 0x5c
lea ecx, [esp + 0x16c]
mov byte [esp + 0x164], 6
call fcn.004039b0
add eax, 1
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x170]
call fcn.004024d0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x164], 7
call fcn.00402160
lea ecx, [esp + 0x1c]
mov byte [esp + 0x160], 6
call fcn.00401170
push 0x2e
lea ecx, [esp + 0x14]
call fcn.004039b0
push eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x18]
call fcn.00402030
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x164], 8
call fcn.00402160
lea ecx, [esp + 0x1c]
mov byte [esp + 0x160], 6
call fcn.00401170
push 0x455bcc
lea ecx, [esp + 0x14]
call fcn.00401430
lea edx, [esp + 0x16c]
push edx
lea ecx, [esp + 0x14]
call fcn.00402a80
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 0x28]
push 2
push 0
push 0
lea ecx, [esp + 0x30]
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x2c]
call fcn.00419123
lea ecx, [esp + 0x24]
call fcn.00419373
lea ecx, [esp + 0x10]
call fcn.00401170
push esi
call edi
or eax, 3
push eax
push esi
call ebp
test eax, eax
mov byte [esp + 0x160], 4
lea ecx, [esp + 0x24]
je 0x404cf4
call fcn.004194a9
lea ecx, [esp + 0x14]
call fcn.00401170
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x38]
mov byte [esp + 0x160], 2
call fcn.004248a9
lea eax, [esi - 0x10]
mov byte [esp + 0x160], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404e93
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x168]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x160], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404ebe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x16c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x160], 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404eec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x158]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.00433eb7
add esp, 0x154
ret 8