Function at 0x100037e1
Capabilities:
Create directory
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
push esi
push edi
xor edi, edi
test byte [0x1000d44c], 1
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
je 0x10003805
mov dword [ebp - 0x10], 0x100
mov eax, dword [ebp + 0x14]
cmp eax, 8
jbe 0x10003b6e
add eax, 0x41
cmp eax, 0x104
jae 0x10003b6e
push 0x5f
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_StrChrA]
test eax, eax
jne 0x10003b6e
push dword [ebp + 0xc]
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x1000e51c
lea eax, [ebp - 0x148]
push eax
call ebx
push 0x1000e4be
lea eax, [ebp - 0x148]
push eax
call ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10003b6e
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x18]
push eax
push edi
mov esi, 0x1000e50c
push esi
push dword [ebp - 0x14]
call ebx
cmp dword [ebp - 0xc], edi
je 0x10003b5e
push dword [0x1000d514]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0xc]
lea eax, [ecx + eax*2 + 0x24]
push eax
push edi
push dword [0x1000d438]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, edi
mov dword [ebp + 0xc], eax
je 0x10003b5e
lea ecx, [ebp - 0xc]
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push esi
push dword [ebp - 0x14]
call ebx
test eax, eax
jne 0x10003b4c
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp + 0xc]
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
shr eax, 1
mov word [ebx + eax*2], di
push dword [0x1000d518]
push ebx
push ebx
call esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push dword [0x1000d514]
push ebx
push ebx
call esi
push dword [0x1000d458]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10003b45
mov ebx, dword [ebp + 0x1c]
mov eax, dword [ebx + 4]
cmp eax, edi
je 0x10003940
push eax
push dword [ebp + 0xc]
call fcn.100034b4
jmp 0x1000394a
push dword [ebp + 0xc]
xor eax, eax
call fcn.10003e50
cmp eax, edi
mov dword [ebp + 0x1c], eax
je 0x10003b3c
mov eax, dword [ebp + 0x14]
push 0x1000e4a6
lea eax, [ebp + eax - 0x11e]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 0x10]
or eax, 0xf003f
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 0x10], eax
push edi
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100039c8
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x1c]
push 1
push edi
push dword [0x1000d510]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], edi
jne 0x10003b2a
lea esi, [ebx + 0x18]
cmp dword [esi], edi
jne 0x100039e4
lea eax, [ebx + 0x1c]
push eax
push esi
call fcn.1000336b
cmp eax, edi
mov dword [ebp - 8], eax
jne 0x10003b2a
push dword [ebx + 0x1c]
push dword [esi]
push dword [ebp + 0xc]
call fcn.100033b6
cmp eax, edi
mov dword [ebp - 8], eax
jne 0x10003acd
cmp dword [ebx], edi
jne 0x10003a0c
push dword [ebp + 0x1c]
xor eax, eax
call fcn.10003e50
mov dword [ebx], eax
push dword [0x1000d508]
mov eax, dword [ebp + 0x14]
lea eax, [ebp + eax - 0x147]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x10003b2a
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push 0x1000e605
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jne 0x10003a80
cmp dword [ebp - 0xc], 0x28
jne 0x10003a80
push 0x28
lea eax, [ebp - 0x40]
push eax
push 3
push edi
push 0x1000e605
push dword [ebp - 4]
mov dword [ebp - 0x40], edi
call esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [ebp + 0xc]
push edi
push dword [0x1000d460]
lea eax, [eax + eax + 2]
push eax
mov dword [ebp - 0xc], eax
call fcn.100040df
push dword [ebp - 0xc]
push dword [ebp + 0xc]
push 3
push edi
push 0x1000e4d6
push dword [ebp - 4]
call esi
mov eax, dword [ebx + 0x10]
cmp eax, edi
je 0x10003b1c
push eax
push dword [ebx + 8]
push 3
push edi
push 0x1000e4ab
push dword [ebp - 4]
call esi
jmp 0x10003b1c
cmp eax, 0x20
je 0x10003b27
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x148]
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10003b2a
mov esi, dword [0x1000d510]
lea eax, [ebp + 8]
push eax
push edi
push dword [ebp - 4]
mov dword [ebp + 8], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x10003b1c
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10003b2a
mov dword [ebp - 8], edi
push dword [ebp + 0x1c]
push edi
push dword [0x1000d438]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10003b4c
mov dword [ebp - 8], 8
jmp 0x10003b4c
mov dword [ebp - 8], 0xb7
push dword [ebp + 0xc]
push edi
push dword [0x1000d438]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10003b65
mov dword [ebp - 8], 8
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x18]
inc dword [eax]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0x18