Function at 0x404110
Capabilities:
Delete file
Print debug messages
Read .ini file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4066c1
mov eax, dword fs:[0]
push eax
mov eax, 0x2474
call fcn.004062b0
mov eax, dword [0x409018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
xor eax, eax
push 0xffe
push eax
mov word [ebp - 0x2210], ax
lea eax, [ebp - 0x220e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
xor eax, eax
push 0xfe
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x10f]
push 0xff
push 0
push eax
mov byte [ebp - 0x110], 0
call sub.MSVCR110.dll_memset
add esp, 0xc
mov dword [ebp - 0x2464], 0
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x210]
push str._d.html
push eax
call fcn.004055d0
add esp, 0xc
lea eax, [ebp - 0x2210]
push eax
call fcn.004050f0
test eax, eax
je 0x404241
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x2210]
push eax
call fcn.00405000
test eax, eax
je 0x404241
push 0x407774
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x2464]
push eax
call dword [sym.imp.MSVCR110.dll__wfopen_s]
mov eax, dword [ebp - 0x2464]
add esp, 0xc
test eax, eax
je 0x404241
push eax
push 0x100
lea eax, [ebp - 0x110]
push 1
push eax
call dword [sym.imp.MSVCR110.dll_fread]
push dword [ebp - 0x2464]
mov esi, eax
call dword [sym.imp.MSVCR110.dll_fclose]
add esp, 0x14
mov dword [ebp - 0x2464], 0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
jle 0x4044d7
lea ecx, [ebp - 0x2460]
call fcn.00401290
xor eax, eax
mov dword [ebp - 0x222c], 7
mov dword [ebp - 0x2230], 0
mov word [ebp - 0x2240], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2460]
push eax
push 0
push str.Type
push str.Cfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
xor eax, eax
push 0xffe
push eax
mov word [ebp - 0x1210], ax
lea eax, [ebp - 0x120e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2460]
push eax
push 0x800
lea eax, [ebp - 0x1210]
push eax
push 0x407274
push str.DS_Def
push 0x407338
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x1210], 0
jne 0x4042f0
xor ecx, ecx
jmp 0x40430f
lea ecx, [ebp - 0x1210]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404300
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x1210]
push eax
lea ecx, [ebp - 0x2240]
call fcn.00401b80
mov ecx, 0x40777c
lea eax, [ebp - 0x110]
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404350
test dl, dl
je 0x40434c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404350
add eax, 2
add ecx, 2
test dl, dl
jne 0x404330
xor eax, eax
jmp 0x404355
sbb eax, eax
or eax, 1
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
test eax, eax
jne 0x40437f
test edi, edi
je 0x40436f
mov ecx, ebx
call fcn.00404b10
jmp 0x4044c3
push str.Timer:_DoHackCmd___is_def.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x4044c3
mov ecx, 0x40779c
lea eax, [ebp - 0x110]
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4043b0
test dl, dl
je 0x4043ac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4043b0
add eax, 2
add ecx, 2
test dl, dl
jne 0x404390
xor eax, eax
jmp 0x4043b5
sbb eax, eax
or eax, 1
test eax, eax
je 0x4044c3
push ecx
lea edx, [ebp - 0x2240]
lea ecx, [ebp - 0x2258]
call fcn.00402800
add esp, 4
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x2228]
mov byte [ebp - 4], 1
call fcn.004015d0
push ecx
lea edx, [ebp - 0x2228]
lea ecx, [ebp - 0x247c]
mov byte [ebp - 4], 2
call fcn.004055f0
add esp, 4
lea ecx, [ebp - 0x2228]
push eax
call fcn.00402aa0
cmp dword [ebp - 0x2468], 0x10
jb 0x404421
push dword [ebp - 0x247c]
call esi
add esp, 4
cmp dword [ebp - 0x2214], 0x10
lea edx, [ebp - 0x2228]
cmovae edx, dword [ebp - 0x2228]
cmp byte [edx], 0
jne 0x40443e
xor ecx, ecx
jmp 0x40444c
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404443
sub ecx, edi
push ecx
push 0
push edx
lea ecx, [ebp - 0x2258]
call fcn.00402f50
cmp eax, 0xffffffff
jne 0x404475
lea eax, [ebp - 0x110]
push eax
call fcn.00404500
mov ecx, ebx
call fcn.00404b10
jmp 0x404480
push str.Timer:_DoHackCmd___change_ok.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 0x2214], 0x10
jb 0x404494
push dword [ebp - 0x2228]
call esi
add esp, 4
cmp dword [ebp - 0x2244], 0x10
mov dword [ebp - 0x2214], 0xf
mov dword [ebp - 0x2218], 0
mov byte [ebp - 0x2228], 0
jb 0x4044c3
push dword [ebp - 0x2258]
call esi
add esp, 4
cmp dword [ebp - 0x222c], 8
jb 0x4044d7
push dword [ebp - 0x2240]
call esi
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004058f7
mov esp, ebp
pop ebp
ret