Function at 0x1004473
Capabilities:
Create directory
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
xor ebx, ebx
push 0xf003f
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x14], ebx
push dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10044bb
mov dword [ebp - 0x14], 0x80004005
jmp 0x1004780
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push ebx
push ebx
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x10044af
mov eax, dword [esi]
imul eax, eax, 0x50c
push eax
call fcn.0100bc2b
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x10044f4
mov dword [ebp - 0x14], 0x8007000e
jmp 0x1004780
cmp dword [esi], ebx
mov dword [ebp - 8], ebx
jbe 0x100477b
mov dword [ebp - 0x18], ebx
mov edi, 0x104
jmp 0x100450c
mov esi, dword [ebp + 0x14]
cmp dword [ebp - 4], ebx
je 0x100451d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], ebx
mov esi, dword [esi + 4]
add esi, dword [ebp - 0x18]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp + 0xc]
push eax
push esi
push dword [ebp - 8]
mov dword [ebp + 0xc], 0x100
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
je 0x1004778
cmp eax, ebx
jne 0x1004767
lea eax, [ebp - 4]
push eax
push 0xf003f
push ebx
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1004767
lea eax, [ebp + 0xc]
push eax
lea eax, [esi + 0x100]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x10013f4
push dword [ebp - 4]
mov dword [ebp + 0xc], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1004767
lea ecx, [ebp + 0xc]
push ecx
lea eax, [esi + 0x408]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x10013e8
push dword [ebp - 4]
mov dword [ebp + 0xc], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10045eb
push dword [ebp + 0x10]
mov dword [esi + 0x508], 4
push 0x10013e0
add esi, 0x200
push edi
push esi
call sub.SHLWAPI.dll_wnsprintfA
add esp, 0x10
jmp 0x1004744
lea eax, [ebp + 0xc]
push eax
lea eax, [esi + 0x408]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x10013d4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1004696
lea ecx, [ebp + 0xc]
push ecx
lea eax, [esi + 0x304]
push eax
mov dword [ebp + 8], eax
lea eax, [ebp - 0x10]
push eax
push ebx
mov dword [esi + 0x508], 1
push 0x10013c0
push dword [ebp - 4]
mov dword [ebp + 0xc], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1004686
push edi
push dword [ebp + 8]
push dword [ebp - 8]
push 0x10013b8
push dword [ebp + 0x10]
call fcn.01004389
test eax, eax
jl 0x1004767
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 8]
push 1
push ebx
push 0x10013c0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1004767
push dword [ebp + 8]
push dword [ebp + 0x10]
push 0x10013ac
jmp 0x1004734
lea eax, [ebp + 0xc]
push eax
lea eax, [esi + 0x408]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x10013a0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1004767
lea ecx, [ebp + 0xc]
push ecx
lea eax, [esi + 0x304]
push eax
mov dword [ebp + 8], eax
lea eax, [ebp - 0x10]
push eax
push ebx
mov dword [esi + 0x508], 2
push 0x100138c
push dword [ebp - 4]
mov dword [ebp + 0xc], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1004729
push edi
push dword [ebp + 8]
push dword [ebp - 8]
push 0x1001384
push dword [ebp + 0x10]
call fcn.01004389
test eax, eax
jl 0x1004767
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 8]
push 1
push ebx
push 0x100138c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1004767
push dword [ebp + 8]
push dword [ebp + 0x10]
push 0x1001378
add esi, 0x200
push edi
push esi
call sub.SHLWAPI.dll_wnsprintfA
add esp, 0x14
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x100475d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1004767
inc dword [ebp - 0x1c]
add dword [ebp - 0x18], 0x50c
inc dword [ebp - 8]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax]
jb 0x1004509
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp - 0x1c]
mov dword [esi], eax
cmp dword [ebp - 4], ebx
je 0x100478e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], ebx
pop edi
pop esi
pop ebx
je 0x100479f
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
leave
ret 0x10