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

Disassembly:
push 0xffffffffffffffff
push 0x410e2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c4
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00402db0
xor ebx, ebx
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x89]
mov byte [esp + 0x88], bl
mov byte [esp + 0x48], 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 + 0x49]
mov byte [esp + 0x1cc], 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 + 0x1cd]
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 + 0x38], ebx
stosb byte es:[edi], al
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x409400
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, 0x41d0e8
push 0x104
call fcn.00402a40
lea ecx, [esp + 0x1d0]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea edx, [esp + 0x1cc]
push 0x208
push edx
call fcn.0040b500
lea eax, [esi + 8]
lea ecx, [esp + 0x1d4]
push eax
push 0xa
push ebp
push ecx
call fcn.00405fe0
add esp, 0x18
test eax, eax
je 0x409705
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 0x409614
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xc9]
mov byte [esp + 0xc8], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0xc8]
push 0x104
push edx
push ebx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40949e
lea eax, [esp + 0xc8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea ecx, [esp + 0xc8]
push str.AddrUpdate.de
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea edx, [esp + 0xc8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40949e
lea eax, [esp + 0xc8]
push 1
push eax
call fcn.004033b0
add esp, 8
lea edi, [esi + 0x118]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4095e4
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, 0x41d0c8
push edx
push 0xa
push edi
call fcn.00402a40
push eax
call fcn.00405fe0
add esp, 0x10
test eax, eax
je 0x4095e4
mov al, 0xf8
push 9
mov byte [esp + 0x21], al
mov byte [esp + 0x26], al
lea eax, [esp + 0x20]
lea ecx, [esp + 0x3c]
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.004029b0
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push edi
mov dword [esp + 0x3f8], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, 0x41d0a8
mov dword [esi + 0x328], eax
call fcn.00402a40
push edi
lea ecx, [esp + 0x2c]
push 4
push ecx
push ebx
lea ecx, [esp + 0x48]
mov dword [esp + 0x24], eax
call fcn.00402a40
mov edx, dword [esp + 0x24]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
call fcn.00407320
test eax, eax
jne 0x4095a6
mov eax, dword [esp + 0x28]
push eax
call fcn.0040aee0
add esp, 4
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x4095aa
call fcn.0040afe0
test eax, eax
je 0x4095aa
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.0040a1f0
xor edx, edx
cmp eax, ebx
mov eax, dword [esi + 4]
setne dl
cmp eax, ebx
mov dword [esp + 0x14], edx
je 0x4095d0
mov dword [esp + 0x18], 1
lea ecx, [esp + 0x38]
mov dword [esp + 0x3dc], 0xffffffff
call fcn.00402a00
mov eax, dword [esi + 0x328]
cmp eax, 0xffffffff
je 0x409600
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 0x409618
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x409618
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x18], ebx
jne 0x40965b
lea eax, [esp + 0x34]
mov ecx, esi
push eax
call fcn.0040a650
cmp dword [esp + 0x18], ebx
jne 0x40965b
lea ecx, [esp + 0x30]
push ecx
call fcn.0040ca40
add esp, 4
test eax, eax
je 0x40965b
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x2c]
push edx
push eax
mov ecx, esi
mov dword [esp + 0x34], ebx
call fcn.00409900
call fcn.0040cad0
push ebp
lea ecx, [esp + 0x8c]
push 0x40
push ecx
push ebx
push str.version
mov ecx, 0x41d0a8
call fcn.00402a40
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x4096af
lea edx, [esp + 0x48]
push 0x40
push edx
call fcn.00407410
add esp, 8
test eax, eax
je 0x4096af
lea eax, [esp + 0x48]
push 1
lea ecx, [esp + 0x8c]
push eax
push ecx
call fcn.0040c630
add esp, 0xc
test eax, eax
jg 0x4096b5
cmp dword [esp + 0x10], ebx
je 0x409701
cmp dword [esp + 0x18], ebx
jne 0x409701
lea edx, [esp + 0x10]
mov ecx, esi
push edx
mov dword [esp + 0x14], ebx
call fcn.00409ce0
test eax, eax
je 0x409705
mov ecx, 0x41cf78
call fcn.00402a40
mov ecx, 0x41cf68
mov edi, eax
call fcn.00402a40
push eax
push edi
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
cmp dword [esp + 0x10], ebx
jne 0x409701
cmp dword [esi + 4], ebx
je 0x409701
xor eax, eax
jmp 0x409705
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x3d4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3d0
ret