Function at 0x40ab0c
Capabilities:
Delete file
Get common file path
Read .ini file

Disassembly:
push ebp
sub esp, 0x448
lea ebp, [esp - 4]
mov eax, dword [0x466b10]
xor eax, ebp
mov dword [ebp + 0x448], eax
push 0x30
mov eax, 0x44b1b3
call fcn.00433137
mov ebx, 0x103
push ebx
lea eax, [ebp + 0x39]
push 0
push eax
mov esi, ecx
mov byte [ebp + 0x38], 0
call fcn.004328f0
push ebx
lea eax, [ebp + 0x13d]
push 0
push eax
mov byte [ebp + 0x13c], 0
call fcn.004328f0
add esp, 0x18
lea eax, [ebp + 0x13c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.Path.Ini
lea eax, [ebp + 0x13c]
push eax
call edi
lea eax, [ebp + 0x13c]
push eax
push 0
push str.Count
push str.Version
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
dec eax
cmp dword [ebp + 0x454], 0xffffffff
mov dword [ebp - 0x1c], eax
je 0x40adab
sub esp, 0x1c
lea eax, [esi + 0x1c]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.004019de
mov ecx, dword [esi + 8]
call fcn.00408d23
cmp dword [ebp + 0x458], 5
jne 0x40ad30
push ebx
lea eax, [ebp + 0x345]
push 0
push eax
mov byte [ebp + 0x344], 0
call fcn.004328f0
mov ebx, dword [ebp + 0x454]
imul ebx, ebx, 0x204
add esp, 0xc
add ebx, esi
lea eax, [ebx + 0x38]
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp + 0x344]
push eax
call edi
push 0x44fc5c
lea eax, [ebp + 0x344]
push eax
call edi
add ebx, 0x138
push ebx
lea eax, [ebp + 0x344]
push eax
call edi
sub esp, 0x1c
lea eax, [ebp + 0x344]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.00401add
mov ecx, dword [esi + 8]
call fcn.0040a931
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push dword [ebp - 0x18]
call fcn.00401add
mov ecx, dword [esi + 8]
call fcn.0040a349
mov ecx, dword [esi + 8]
call fcn.00409f67
lea eax, [ebp + 0x344]
push eax
lea ecx, [ebp]
call fcn.00401add
push str..hdr
lea eax, [ebp]
push eax
lea eax, [ebp - 0x3c]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.00407f8e
add esp, 0xc
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.004018b9
xor ebx, ebx
push esi
inc ebx
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0
call fcn.00401627
lea eax, [ebp + 0x344]
push eax
lea ecx, [ebp + 0x1c]
call fcn.00401add
push str..src
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 2
push eax
call fcn.00407f8e
add esp, 0xc
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 3
call fcn.004018b9
push esi
push ebx
lea ecx, [ebp - 0x3c]
call fcn.00401627
cmp dword [ebp + 0x34], 0x10
mov eax, dword [ebp + 0x20]
jae 0x40acff
lea eax, [ebp + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call edi
cmp dword [ebp + 0x18], 0x10
mov eax, dword [ebp + 4]
jae 0x40ad14
lea eax, [ebp + 4]
push eax
call edi
push esi
push ebx
lea ecx, [ebp + 0x1c]
call fcn.00401627
push esi
push ebx
lea ecx, [ebp]
call fcn.00401627
jmp 0x40b1a6
cmp dword [ebp + 0x458], 1
jne 0x40b1a6
mov eax, dword [ebp + 0x454]
imul eax, eax, 0x204
sub esp, 0x1c
lea edi, [eax + esi]
lea ebx, [edi + 0x138]
mov ecx, esp
mov dword [ebp - 0x18], esp
push ebx
call fcn.00401add
sub esp, 0x1c
add edi, 0x38
mov ecx, esp
mov dword [ebp - 0x1c], esp
push edi
mov dword [ebp - 4], 4
call fcn.00401add
mov ecx, dword [esi + 8]
or dword [ebp - 4], 0xffffffff
call fcn.0040963a
test al, al
je 0x40ad9e
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x18], esp
push ebx
call fcn.00401add
mov ecx, dword [esi + 8]
call fcn.00409e08
mov ecx, dword [esi + 8]
call fcn.00409f67
jmp 0x40b1a6
and dword [ebp - 0x18], 0
cmp dword [esi + 0x848], 0
jle 0x40b16a
lea eax, [esi + 0x138]
mov dword [ebp - 0x10], eax
sub esp, 0x1c
lea eax, [esi + 0x1c]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.004019de
mov ecx, dword [esi + 8]
call fcn.00408d23
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x100]
cmp eax, 1
jne 0x40ae14
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x20], esp
push edx
call fcn.00401add
mov eax, dword [ebp - 0x10]
add eax, 0xffffff00
sub esp, 0x1c
mov dword [ebp - 4], 5
mov dword [ebp - 0x14], esp
jmp 0x40afef
cmp eax, 2
jne 0x40af01
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14], esp
push edx
call fcn.00401add
mov eax, dword [ebp - 0x10]
sub esp, 0x1c
add eax, 0xffffff00
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
mov dword [ebp - 4], 6
call fcn.00401add
mov ecx, dword [esi + 8]
or dword [ebp - 4], 0xffffffff
call fcn.004099ee
test al, al
je 0x40ae70
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14], esp
push dword [ebp - 0x10]
call fcn.00401add
mov ecx, dword [esi + 8]
call fcn.00409e08
push ebx
lea eax, [ebp + 0x345]
push 0
push eax
mov byte [ebp + 0x344], 0
call fcn.004328f0
mov eax, dword [ebp - 0x10]
add esp, 0xc
add eax, 0xffffff00
push eax
lea eax, [ebp + 0x344]
push eax
call edi
push 0x44fc5c
lea eax, [ebp + 0x344]
push eax
call edi
push dword [ebp - 0x10]
lea eax, [ebp + 0x344]
push eax
call edi
cmp dword [ebp - 0x1c], 0
jg 0x40b151
mov eax, dword [ebp - 0x10]
sub esp, 0x1c
add eax, 0xffffff00
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.00401add
sub esp, 0x1c
lea eax, [ebp + 0x344]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
mov dword [ebp - 4], 7
call fcn.00401add
mov ecx, dword [esi + 8]
or dword [ebp - 4], 0xffffffff
call fcn.00408d81
jmp 0x40b151
cmp eax, 3
jne 0x40b028
push ebx
lea eax, [ebp + 0x345]
push 0
push eax
mov byte [ebp + 0x344], 0
call fcn.004328f0
mov eax, dword [ebp - 0x10]
add esp, 0xc
add eax, 0xffffff00
push eax
lea eax, [ebp + 0x344]
push eax
call edi
push 0x44fc5c
lea eax, [ebp + 0x344]
push eax
call edi
push dword [ebp - 0x10]
lea eax, [ebp + 0x344]
push eax
call edi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14], esp
push dword [ebp - 0x10]
call fcn.00401add
mov eax, dword [ebp - 0x10]
sub esp, 0x1c
add eax, 0xffffff00
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
mov dword [ebp - 4], 8
call fcn.00401add
mov ecx, dword [esi + 8]
or dword [ebp - 4], 0xffffffff
call fcn.004099ee
sub esp, 0x1c
lea eax, [ebp + 0x344]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.00401add
mov ecx, dword [esi + 8]
call fcn.0040a931
mov eax, dword [ebp - 0x10]
sub esp, 0x1c
add eax, 0xffffff00
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.00401add
mov ecx, dword [esi + 8]
call fcn.0040a349
mov ecx, dword [esi + 8]
call fcn.00409f67
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14], esp
push dword [ebp - 0x10]
call fcn.00401add
mov eax, dword [ebp - 0x10]
sub esp, 0x1c
mov dword [ebp - 4], 9
mov dword [ebp - 0x20], esp
add eax, 0xffffff00
mov ecx, esp
push eax
call fcn.00401add
mov ecx, dword [esi + 8]
or dword [ebp - 4], 0xffffffff
call fcn.0040963a
test al, al
je 0x40b151
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14], esp
push dword [ebp - 0x10]
call fcn.00401add
mov ecx, dword [esi + 8]
call fcn.00409e08
jmp 0x40b151
cmp eax, 4
je 0x40b151
cmp eax, 5
jne 0x40b0be
push ebx
lea eax, [ebp + 0x345]
push 0
push eax
mov byte [ebp + 0x344], 0
call fcn.004328f0
mov eax, dword [ebp - 0x10]
add esp, 0xc
add eax, 0xffffff00
push eax
lea eax, [ebp + 0x344]
push eax
call edi
push 0x44fc5c
lea eax, [ebp + 0x344]
push eax
call edi
push dword [ebp - 0x10]
lea eax, [ebp + 0x344]
push eax
call edi
sub esp, 0x1c
lea eax, [ebp + 0x344]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.00401add
mov ecx, dword [esi + 8]
call fcn.0040a931
mov eax, dword [ebp - 0x10]
sub esp, 0x1c
add eax, 0xffffff00
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.00401add
mov ecx, dword [esi + 8]
call fcn.0040a349
jmp 0x40b149
cmp eax, 6
jne 0x40b151
push ebx
lea eax, [ebp + 0x241]
push 0
push eax
mov byte [ebp + 0x240], 0
call fcn.004328f0
mov eax, dword [ebp - 0x10]
add esp, 0xc
add eax, 0xffffff00
push eax
lea eax, [ebp + 0x240]
push eax
call edi
push 0x44fc5c
lea eax, [ebp + 0x240]
push eax
call edi
push dword [ebp - 0x10]
lea eax, [ebp + 0x240]
push eax
call edi
mov eax, dword [ebp - 0x10]
sub esp, 0x1c
add eax, 0xffffff00
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.00401add
sub esp, 0x1c
lea eax, [ebp + 0x240]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
mov dword [ebp - 4], 0xa
call fcn.00401add
mov ecx, dword [esi + 8]
or dword [ebp - 4], 0xffffffff
call fcn.00408d81
mov ecx, dword [esi + 8]
call fcn.00409f67
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], 0x204
cmp eax, dword [esi + 0x848]
jl 0x40adc5
cmp dword [ebp - 0x1c], 0
jg 0x40b177
mov dword [ebp - 0x1c], 0xa
push dword [ebp - 0x1c]
lea eax, [ebp + 0x38]
push 0x450714
push eax
call fcn.00435a0d
add esp, 0xc
lea eax, [ebp + 0x13c]
push eax
lea eax, [ebp + 0x38]
push eax
push str.Count
push str.Version
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x448]
xor ecx, ebp
call fcn.00432980
add ebp, 0x44c
leave
ret 8