Function at 0x408d50
Capabilities:
Create directory
Delete file
Get common file path
Move file
Query or enumerate registry value
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x115c
call fcn.0040ca00
mov eax, dword [0x40fb84]
mov ecx, dword [str..log]
mov dword [ebp - 0x10], eax
mov al, byte [0x437278]
push ebx
push esi
mov dl, byte [0x40fb80]
push edi
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 0xd5c], al
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0xd5b]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 4]
mov byte [ebp - 0x18], dl
mov edx, dword [str.SoftwareRealNetworksPreferencesNumberOfLogFiles]
xor esi, esi
push ecx
push 1
stosw word es:[edi], ax
push esi
push edx
push 0x80000001
mov dword [ebp - 8], 1
mov dword [ebp - 4], esi
stosb byte es:[edi], al
call ebx
test eax, eax
jne 0x408e37
mov al, byte [0x437278]
mov ecx, 0x3f
mov byte [ebp - 0x15c], al
xor eax, eax
lea edi, [ebp - 0x15b]
lea edx, [ebp - 0x15c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], esi
stosb byte es:[edi], al
push ecx
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0xc]
push edx
push eax
push esi
push esi
push ecx
mov dword [ebp - 8], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x15c]
mov dword [ebp - 4], esi
push eax
call dword [sym.imp.PNCRT.dll_atoi]
add esp, 4
cmp eax, 1
mov dword [ebp - 8], eax
jb 0x408e30
cmp eax, 0x2710
jbe 0x408e37
mov dword [ebp - 8], 1
mov cl, byte [0x437278]
xor eax, eax
mov byte [ebp - 0x55c], cl
mov ecx, 0xff
lea edi, [ebp - 0x55b]
mov esi, 0x437278
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, 0x45dbdc
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x408e83
test cl, cl
je 0x408e7f
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x408e83
add eax, 2
add esi, 2
test cl, cl
jne 0x408e5f
xor eax, eax
jmp 0x408e88
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x408ea6
push 0x400
lea eax, [ebp - 0x55c]
push 0x45dbdc
push eax
call dword [sym.imp.PNCRT.dll_strncpy]
add esp, 0xc
mov esi, 0x437278
lea eax, [ebp - 0x55c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x408ed5
test cl, cl
je 0x408ed1
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x408ed5
add eax, 2
add esi, 2
test cl, cl
jne 0x408eb1
xor eax, eax
jmp 0x408eda
sbb eax, eax
sbb eax, 0xffffffff
xor edi, edi
cmp eax, edi
jne 0x408f2b
mov ecx, dword [str.SoftwareRealNetworksPreferencesUserDataPath]
lea eax, [ebp - 4]
push eax
push 1
push edi
push ecx
push 0x80000001
call ebx
test eax, eax
jne 0x408f2b
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x55c]
push edx
mov edx, dword [ebp - 4]
lea ecx, [ebp - 0x14]
push eax
push ecx
push edi
push edi
push edx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], edi
mov esi, 0x437278
lea eax, [ebp - 0x55c]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x408f5e
test cl, cl
je 0x408f5a
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x408f5e
add eax, 2
add esi, 2
test cl, cl
jne 0x408f36
xor eax, eax
jmp 0x408f63
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
jne 0x408f94
lea eax, [ebp - 0x55c]
push 0x400
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x55c]
push 0x5c
push ecx
call dword [sym.imp.PNCRT.dll_strrchr]
add esp, 8
cmp eax, edi
je 0x408f94
mov byte [eax + 1], 0
lea edx, [ebp - 0xd5c]
push edx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, str.ErrorLogs
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x55c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [ebp - 0x55c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x55c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov al, byte [0x437278]
xor edx, edx
mov byte [ebp - 0x44], al
mov byte [ebp - 0x30], al
xor eax, eax
mov dword [ebp - 0x43], edx
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x3f], edx
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x3b], edx
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x37], edx
mov ebx, dword [sym.imp.PNCRT.dll_sprintf]
mov dword [ebp - 0x23], eax
mov word [ebp - 0x33], dx
mov edx, dword [ebp - 8]
lea ecx, [ebp - 0x1c]
mov word [ebp - 0x1f], ax
push ecx
lea eax, [ebp - 0x10]
push edx
push eax
lea ecx, [ebp - 0x30]
push str._s_lu_s
push ecx
call ebx
add esp, 0x14
lea edx, [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [ebp - 8]
cmp esi, 1
jbe 0x409096
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileA]
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x10]
push eax
push esi
push ecx
lea edx, [ebp - 0x44]
push str._s_lu_s
push edx
call ebx
add esp, 0x14
lea eax, [ebp - 0x1c]
dec esi
lea ecx, [ebp - 0x10]
push eax
push esi
push ecx
lea edx, [ebp - 0x30]
push str._s_lu_s
push edx
call ebx
add esp, 0x14
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x30]
push eax
push ecx
call edi
cmp esi, 1
ja 0x409058
mov dl, byte [0x437278]
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x95b]
mov byte [ebp - 0x95c], dl
mov esi, 0x437278
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, 0x45dfdc
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4090e2
test cl, cl
je 0x4090de
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4090e2
add eax, 2
add esi, 2
test cl, cl
jne 0x4090be
xor eax, eax
jmp 0x4090e7
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x409105
push 0x400
lea eax, [ebp - 0x95c]
push 0x45dfdc
push eax
call dword [sym.imp.PNCRT.dll_strncpy]
add esp, 0xc
mov esi, 0x437278
lea eax, [ebp - 0x95c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x409134
test cl, cl
je 0x409130
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x409134
add eax, 2
add esi, 2
test cl, cl
jne 0x409110
xor eax, eax
jmp 0x409139
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4091d3
mov al, byte [0x437278]
mov ecx, 0xff
mov byte [ebp - 0x115c], al
xor eax, eax
lea edi, [ebp - 0x115b]
mov edx, dword [str.SoftwareRealNetworks_s_d._dPreferences_s]
rep stosd dword es:[edi], eax
mov ecx, dword [str.SymbolsPath]
stosw word es:[edi], ax
push ecx
push 0
stosb byte es:[edi], al
push 6
push 0x40f688
lea eax, [ebp - 0x115c]
push edx
push eax
call ebx
add esp, 0x18
lea ecx, [ebp - 4]
lea edx, [ebp - 0x115c]
push ecx
push 0x20019
push 0
push edx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4091d3
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x95c]
push eax
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xc]
push ecx
push edx
push 0
push 0
push eax
mov dword [ebp - 0x14], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 0x437278
lea eax, [ebp - 0x95c]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x409206
test cl, cl
je 0x409202
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x409206
add eax, 2
add esi, 2
test cl, cl
jne 0x4091de
xor eax, eax
jmp 0x40920b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40923c
lea eax, [ebp - 0x95c]
push 0x400
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x95c]
push 0x5c
push ecx
call dword [sym.imp.PNCRT.dll_strrchr]
add esp, 8
test eax, eax
je 0x40923c
mov byte [eax], 0
lea ecx, [ebp - 0x5c]
call fcn.00409440
lea edx, [ebp - 0x95c]
lea ecx, [ebp - 0x5c]
push edx
call fcn.00409570
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x5c]
push eax
call fcn.00409480
lea ecx, [ebp - 0x5c]
call fcn.0040abc0
lea ecx, [ebp - 0x5c]
call fcn.0040a880
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
lea ecx, [ebp - 0x5c]
call fcn.0040a7a0
lea ecx, [ebp - 0x5c]
call fcn.0040a630
lea ecx, [ebp - 0x5c]
call fcn.0040a690
lea ecx, [ebp - 0x5c]
call fcn.0040a780
lea esi, [ebp - 0xd5c]
mov eax, 0x437278
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4092cc
test cl, cl
je 0x4092c8
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4092cc
add eax, 2
add esi, 2
test cl, cl
jne 0x4092a4
xor eax, eax
jmp 0x4092d1
sbb eax, eax
sbb eax, 0xffffffff
pop edi
pop esi
test eax, eax
pop ebx
je 0x4092e5
lea eax, [ebp - 0xd5c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [ebp - 0x5c]
call fcn.00409460
mov esp, ebp
pop ebp
ret