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

Disassembly:
push 0xffffffffffffffff
push 0x40df3b
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.00403290
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 0x4074d1
lea eax, [esi + 0x21c]
push str.Profile.ini
push eax
push str._s_s
push 0x103
push ebp
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
mov ecx, 0x418b88
push 0x104
call fcn.00402170
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.00408cb0
lea eax, [esi + 8]
lea ecx, [esp + 0x1cc]
push eax
push 0xa
push ebp
push ecx
call fcn.004043d0
add esp, 0x18
test eax, eax
je 0x4077a6
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x320], eax
mov eax, dword [esi + 0x330]
cmp eax, ebx
je 0x4076e6
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 0x40756f
lea eax, [esp + 0xc0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea ecx, [esp + 0xc0]
push 0x414260
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 0x40756f
lea eax, [esp + 0xc0]
push 1
push eax
call fcn.004022e0
add esp, 8
lea edi, [esi + 0x118]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4076b6
lea ecx, [esi + 0x21c]
push str.TBHProfile.ini
push ecx
push str._s_s
push 0x103
push edi
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
lea edx, [esi + 8]
mov ecx, 0x418b68
push edx
push 0xa
push edi
call fcn.00402170
push eax
call fcn.004043d0
add esp, 0x10
test eax, eax
je 0x4076b6
mov al, 0xf8
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.004020e0
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, 0x418b48
mov dword [esi + 0x324], eax
call fcn.00402170
push edi
lea ecx, [esp + 0x2c]
push 4
push ecx
push ebx
lea ecx, [esp + 0x40]
mov dword [esp + 0x24], eax
call fcn.00402170
mov edx, dword [esp + 0x24]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
call fcn.004088e0
test eax, eax
jne 0x407678
mov eax, dword [esp + 0x28]
push eax
call fcn.004087e0
add esp, 4
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x40767c
call fcn.004089f0
test eax, eax
je 0x40767c
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.00407cd0
xor edx, edx
cmp eax, ebx
mov eax, dword [esi + 4]
setne dl
cmp eax, ebx
mov dword [esp + 0x14], edx
je 0x4076a2
mov dword [esp + 0x18], 1
lea ecx, [esp + 0x30]
mov dword [esp + 0x3d4], 0xffffffff
call fcn.00402130
mov eax, dword [esi + 0x324]
cmp eax, 0xffffffff
je 0x4076d2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x324], 0xffffffff
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4076ea
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4076ea
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x18], ebx
jne 0x4076fc
lea eax, [esp + 0x2c]
mov ecx, esi
push eax
call fcn.00408050
push ebp
lea ecx, [esp + 0x84]
push 0x40
push ecx
push ebx
push str.version
mov ecx, 0x418b48
call fcn.00402170
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x407750
lea edx, [esp + 0x40]
push 0x40
push edx
call fcn.004056c0
add esp, 8
test eax, eax
je 0x407750
lea eax, [esp + 0x40]
push 1
lea ecx, [esp + 0x84]
push eax
push ecx
call fcn.0040a070
add esp, 0xc
test eax, eax
jg 0x407756
cmp dword [esp + 0x10], ebx
je 0x4077a2
cmp dword [esp + 0x18], ebx
jne 0x4077a2
lea edx, [esp + 0x10]
mov ecx, esi
push edx
mov dword [esp + 0x14], ebx
call fcn.004077c0
test eax, eax
je 0x4077a6
mov ecx, 0x418a38
call fcn.00402170
mov ecx, 0x418a28
mov edi, eax
call fcn.00402170
push eax
push edi
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
cmp dword [esp + 0x10], ebx
jne 0x4077a2
cmp dword [esi + 4], ebx
je 0x4077a2
xor eax, eax
jmp 0x4077a6
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