Function at 0x4078c0
Capabilities:
Check if file exists
Delete file
Delete registry value
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x411a6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3bc
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.004068e0
xor ebx, ebx
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x81]
mov byte [esp + 0x80], bl
mov byte [esp + 0x40], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x41]
mov byte [esp + 0x1c4], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1c5]
lea ebp, [esi + 0x14]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x30], ebx
stosb byte es:[edi], al
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4079c0
lea eax, [esi + 0x220]
push str.Profile.ini
push eax
push str._s_s
push 0x103
push ebp
call sub.MSVCRT.dll__snprintf
add esp, 0x14
mov ecx, 0x41cdc8
push 0x104
call fcn.00402260
lea ecx, [esp + 0x1c8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea edx, [esp + 0x1c4]
push 0x208
push edx
call fcn.00409900
lea eax, [esi + 8]
lea ecx, [esp + 0x1cc]
push eax
push 0xa
push ebp
push ecx
call fcn.00404700
add esp, 0x18
test eax, eax
je 0x407c94
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x324], eax
mov eax, dword [esi + 0x334]
cmp eax, ebx
je 0x407bd4
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xc1]
mov byte [esp + 0xc0], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0xc0]
push 0x104
push edx
push ebx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x407a5e
lea eax, [esp + 0xc0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea ecx, [esp + 0xc0]
push 0x418290
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea edx, [esp + 0xc0]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x407a5e
lea eax, [esp + 0xc0]
push 1
push eax
call fcn.004023d0
add esp, 8
lea edi, [esi + 0x118]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x407ba4
lea ecx, [esi + 0x220]
push str.TBHProfile.ini
push ecx
push str._s_s
push 0x103
push edi
call sub.MSVCRT.dll__snprintf
add esp, 0x14
lea edx, [esi + 8]
mov ecx, 0x41cda8
push edx
push 0xa
push edi
call fcn.00402260
push eax
call fcn.00404700
add esp, 0x10
test eax, eax
je 0x407ba4
mov al, pe_nt_image_headers32
push 9
mov byte [esp + 0x21], al
mov byte [esp + 0x26], al
lea eax, [esp + 0x20]
lea ecx, [esp + 0x34]
push eax
push 0x17
mov byte [esp + 0x28], 0xf3
mov byte [esp + 0x2a], 0xf5
mov byte [esp + 0x2b], 0xcd
mov byte [esp + 0x2c], 0xce
mov byte [esp + 0x2d], 0xd9
mov byte [esp + 0x2f], 0xd5
mov byte [esp + 0x30], 0xc4
call fcn.004021d0
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push edi
mov dword [esp + 0x3f0], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, 0x41cd88
mov dword [esi + 0x328], eax
call fcn.00402260
push edi
lea ecx, [esp + 0x2c]
push 4
push ecx
push ebx
lea ecx, [esp + 0x40]
mov dword [esp + 0x24], eax
call fcn.00402260
mov edx, dword [esp + 0x24]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
call fcn.00409000
test eax, eax
jne 0x407b66
mov eax, dword [esp + 0x28]
push eax
call fcn.00408f00
add esp, 4
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x407b6a
call fcn.00409110
test eax, eax
je 0x407b6a
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.004083d0
xor edx, edx
cmp eax, ebx
mov eax, dword [esi + 4]
setne dl
cmp eax, ebx
mov dword [esp + 0x14], edx
je 0x407b90
mov dword [esp + 0x18], 1
lea ecx, [esp + 0x30]
mov dword [esp + 0x3d4], 0xffffffff
call fcn.00402220
mov eax, dword [esi + 0x328]
cmp eax, 0xffffffff
je 0x407bc0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x328], 0xffffffff
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x407bd8
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x407bd8
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x18], ebx
jne 0x407bea
lea eax, [esp + 0x2c]
mov ecx, esi
push eax
call fcn.00408750
push ebp
lea ecx, [esp + 0x84]
push 0x40
push ecx
push ebx
push str.version
mov ecx, 0x41cd88
call fcn.00402260
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x407c3e
lea edx, [esp + 0x40]
push 0x40
push edx
call fcn.00405ad0
add esp, 8
test eax, eax
je 0x407c3e
lea eax, [esp + 0x40]
push 1
lea ecx, [esp + 0x84]
push eax
push ecx
call fcn.0040b410
add esp, 0xc
test eax, eax
jg 0x407c44
cmp dword [esp + 0x10], ebx
je 0x407c90
cmp dword [esp + 0x18], ebx
jne 0x407c90
lea edx, [esp + 0x10]
mov ecx, esi
push edx
mov dword [esp + 0x14], ebx
call fcn.00407ec0
test eax, eax
je 0x407c94
mov ecx, 0x41cc68
call fcn.00402260
mov ecx, 0x41cc58
mov edi, eax
call fcn.00402260
push eax
push edi
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
cmp dword [esp + 0x10], ebx
jne 0x407c90
cmp dword [esi + 4], ebx
je 0x407c90
xor eax, eax
jmp 0x407c94
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x3cc]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c8
ret