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

Disassembly:
mov eax, 0x43d6a8
call fcn.0041de9c
sub esp, 0x660
mov dl, byte [0x454070]
push ebx
push esi
push edi
mov esi, ecx
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x66b]
mov byte [ebp - 0x66c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x463]
mov byte [ebp - 0x464], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x464]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea eax, [ebp - 0x464]
push str.Path.Ini
push eax
call ebx
lea eax, [ebp - 0x464]
push eax
push 0
push str.Count
push str.Version
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntA]
mov edi, dword [ebp + 8]
dec eax
cmp edi, 0xffffffff
mov dword [ebp - 0x1c], eax
je 0x404421
mov al, byte [esi + 0x1c]
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x10], esp
push 0
mov dword [ebp - 0x10], ecx
mov byte [ecx], al
call fcn.004029a7
push dword [0x44067c]
mov ecx, dword [ebp - 0x10]
lea eax, [esi + 0x1c]
push 0
push eax
call fcn.004028ad
mov ecx, dword [esi + 8]
call fcn.00401109
cmp dword [ebp + 0xc], 5
jne 0x40437a
mov al, byte [0x454070]
push 0x40
mov byte [ebp - 0x158], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x157]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp + 8]
imul edi, edi, 0x204
add edi, esi
lea eax, [edi + 0x2c]
mov dword [ebp + 8], eax
push eax
lea eax, [ebp - 0x158]
push eax
call ebx
lea eax, [ebp - 0x158]
push 0x44e1c8
push eax
call ebx
add edi, 0x12c
lea eax, [ebp - 0x158]
push edi
push eax
call ebx
mov al, byte [ebp + 0xb]
sub esp, 0x10
mov edi, esp
xor ebx, ebx
mov dword [ebp + 0xc], esp
push ebx
mov ecx, edi
mov byte [edi], al
call fcn.004029a7
lea eax, [ebp - 0x158]
push eax
call fcn.0041dec0
pop ecx
push eax
lea eax, [ebp - 0x158]
push eax
mov ecx, edi
call fcn.00402b89
mov ecx, dword [esi + 8]
call fcn.004038d9
mov al, byte [ebp + 0xb]
sub esp, 0x10
mov edi, esp
mov dword [ebp + 0xc], esp
push ebx
mov ecx, edi
mov byte [edi], al
call fcn.004029a7
push dword [ebp + 8]
call fcn.0041dec0
pop ecx
push eax
mov ecx, edi
push dword [ebp + 8]
call fcn.00402b89
mov ecx, dword [esi + 8]
call fcn.00403ccc
mov ecx, dword [esi + 8]
call fcn.00403ed8
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x34], al
call fcn.004029a7
lea eax, [ebp - 0x158]
push eax
call fcn.0041dec0
pop ecx
push eax
lea eax, [ebp - 0x158]
push eax
lea ecx, [ebp - 0x34]
call fcn.00402b89
lea eax, [ebp - 0x34]
push str..hdr
push eax
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 4], ebx
call fcn.0040354b
add esp, 0xc
push dword [0x44067c]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
push ebx
push eax
call fcn.004028ad
and byte [ebp - 4], bl
push 1
pop edi
lea ecx, [ebp - 0x54]
push edi
call fcn.004029a7
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x44]
mov byte [ebp - 0x44], al
call fcn.004029a7
lea eax, [ebp - 0x158]
push eax
call fcn.0041dec0
pop ecx
push eax
lea eax, [ebp - 0x158]
push eax
lea ecx, [ebp - 0x44]
call fcn.00402b89
lea eax, [ebp - 0x44]
push str..src
push eax
lea eax, [ebp - 0x54]
push eax
mov byte [ebp - 4], 2
call fcn.0040354b
add esp, 0xc
push dword [0x44067c]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
push ebx
push eax
call fcn.004028ad
push edi
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call fcn.004029a7
mov eax, dword [ebp - 0x40]
cmp eax, ebx
jne 0x404343
mov eax, 0x440680
mov esi, dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push eax
call esi
mov eax, dword [ebp - 0x30]
cmp eax, ebx
jne 0x404358
mov eax, 0x440680
push eax
call esi
and byte [ebp - 4], 0
push edi
lea ecx, [ebp - 0x44]
call fcn.004029a7
or dword [ebp - 4], 0xffffffff
push edi
lea ecx, [ebp - 0x34]
call fcn.004029a7
jmp 0x4049a9
cmp dword [ebp + 0xc], 1
jne 0x4049a9
imul edi, edi, 0x204
mov al, byte [ebp + 0xb]
sub esp, 0x10
add edi, esi
mov ecx, esp
mov dword [ebp - 0x10], esp
push 0
lea ebx, [edi + 0x12c]
mov dword [ebp + 0xc], ecx
mov byte [ecx], al
call fcn.004029a7
push ebx
call fcn.0041dec0
pop ecx
mov ecx, dword [ebp + 0xc]
push eax
push ebx
call fcn.00402b89
sub esp, 0x10
lea eax, [ebp + 0xb]
mov ecx, esp
mov dword [ebp + 0xc], esp
add edi, 0x2c
push eax
push edi
mov dword [ebp - 4], 4
call fcn.00404f96
mov ecx, dword [esi + 8]
or dword [ebp - 4], 0xffffffff
call fcn.004018d7
test al, al
je 0x404414
sub esp, 0x10
mov dword [ebp + 8], esp
mov al, byte [ebp + 0xb]
mov edi, esp
push 0
mov ecx, edi
mov byte [edi], al
call fcn.004029a7
push ebx
call fcn.0041dec0
pop ecx
push eax
push ebx
mov ecx, edi
call fcn.00402b89
mov ecx, dword [esi + 8]
call fcn.004023e9
mov ecx, dword [esi + 8]
call fcn.00403ed8
jmp 0x4049a9
and dword [ebp - 0x20], 0
cmp dword [esi + 0x83c], 0
jle 0x404967
lea eax, [esi + 0x12c]
mov dword [ebp - 0x14], eax
mov al, byte [esi + 0x1c]
sub esp, 0x10
mov edi, esp
mov dword [ebp - 0x10], esp
push 0
mov ecx, edi
mov byte [edi], al
call fcn.004029a7
push dword [0x44067c]
lea eax, [esi + 0x1c]
mov ecx, edi
push 0
push eax
call fcn.004028ad
mov ecx, dword [esi + 8]
call fcn.00401109
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x100]
cmp eax, 1
jne 0x404514
mov al, byte [ebp + 0xb]
sub esp, 0x10
mov edi, esp
mov dword [ebp - 0x10], esp
push 0
mov ecx, edi
mov byte [edi], al
call fcn.004029a7
push dword [ebp - 0x14]
call fcn.0041dec0
pop ecx
push eax
mov ecx, edi
push dword [ebp - 0x14]
call fcn.00402b89
sub esp, 0x10
lea eax, [ebp + 0xb]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
mov eax, dword [ebp - 0x14]
add eax, 0xffffff00
mov dword [ebp - 4], 5
push eax
call fcn.00404f96
mov ecx, dword [esi + 8]
or dword [ebp - 4], 0xffffffff
call fcn.004018d7
test al, al
je 0x40494e
mov al, byte [ebp + 0xb]
sub esp, 0x10
mov dword [ebp - 0x18], esp
mov edi, esp
push 0
mov ecx, edi
mov byte [edi], al
call fcn.004029a7
push dword [ebp - 0x14]
call fcn.0041dec0
pop ecx
push eax
mov ecx, edi
push dword [ebp - 0x14]
call fcn.00402b89
mov ecx, dword [esi + 8]
call fcn.004023e9
jmp 0x40494e
cmp eax, 2
jne 0x404658
mov al, byte [ebp + 0xb]
sub esp, 0x10
mov edi, esp
mov dword [ebp - 0x18], esp
push 0
mov ecx, edi
mov byte [edi], al
call fcn.004029a7
push dword [ebp - 0x14]
call fcn.0041dec0
pop ecx
push eax
mov ecx, edi
push dword [ebp - 0x14]
call fcn.00402b89
mov eax, dword [ebp - 0x14]
sub esp, 0x10
lea edx, [ebp + 0xf]
add eax, 0xffffff00
mov ecx, esp
mov dword [ebp - 0x10], esp
push edx
push eax
mov dword [ebp - 4], 6
call fcn.00404f96
mov ecx, dword [esi + 8]
or dword [ebp - 4], 0xffffffff
call fcn.00401cb6
test al, al
je 0x4045aa
mov al, byte [ebp + 0xb]
sub esp, 0x10
mov edi, esp
mov dword [ebp - 0x18], esp
push 0
mov ecx, edi
mov byte [edi], al
call fcn.004029a7
push dword [ebp - 0x14]
call fcn.0041dec0
pop ecx
push eax
mov ecx, edi
push dword [ebp - 0x14]
call fcn.00402b89
mov ecx, dword [esi + 8]
call fcn.004023e9
mov al, byte [0x454070]
push 0x40
mov byte [ebp - 0x568], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x567]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp - 0x14]
add eax, 0xffffff00
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0x568]
push eax
call ebx
lea eax, [ebp - 0x568]
push 0x44e1c8
push eax
call ebx
push dword [ebp - 0x14]
lea eax, [ebp - 0x568]
push eax
call ebx
cmp dword [ebp - 0x1c], 0
jg 0x40494e
mov al, byte [ebp + 0xb]
sub esp, 0x10
mov edi, esp
mov dword [ebp - 0x18], esp
push 0
mov ecx, edi
mov byte [edi], al
call fcn.004029a7
push dword [ebp - 0x10]
call fcn.0041dec0
pop ecx
push eax
mov ecx, edi
push dword [ebp - 0x10]
call fcn.00402b89
sub esp, 0x10
lea eax, [ebp - 0x24]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
lea eax, [ebp - 0x568]
push eax
mov dword [ebp - 4], 7
call fcn.00404f96
mov ecx, dword [esi + 8]
or dword [ebp - 4], 0xffffffff
call fcn.004020e6
jmp 0x40494e
cmp eax, 3
jne 0x4047d7
mov al, byte [0x454070]
push 0x40
mov byte [ebp - 0x158], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x157]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp - 0x14]
lea edi, [eax - 0x100]
lea eax, [ebp - 0x158]
push edi
push eax
call ebx
lea eax, [ebp - 0x158]
push 0x44e1c8
push eax
call ebx
push dword [ebp - 0x14]
lea eax, [ebp - 0x158]
push eax
call ebx
mov al, byte [ebp + 0xb]
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0
mov dword [ebp - 0x10], ecx
mov byte [ecx], al
call fcn.004029a7
push dword [ebp - 0x14]
call fcn.0041dec0
pop ecx
mov ecx, dword [ebp - 0x10]
push eax
push dword [ebp - 0x14]
call fcn.00402b89
sub esp, 0x10
lea eax, [ebp - 0x21]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
push edi
mov dword [ebp - 4], 8
call fcn.00404f96
mov ecx, dword [esi + 8]
or dword [ebp - 4], 0xffffffff
call fcn.00401cb6
mov al, byte [ebp + 0xb]
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0
mov dword [ebp - 0x10], ecx
mov byte [ecx], al
call fcn.004029a7
lea eax, [ebp - 0x158]
push eax
call fcn.0041dec0
pop ecx
mov ecx, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x158]
push eax
call fcn.00402b89
mov ecx, dword [esi + 8]
call fcn.004038d9
mov al, byte [ebp + 0xb]
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0
mov dword [ebp - 0x10], ecx
mov byte [ecx], al
call fcn.004029a7
push edi
call fcn.0041dec0
pop ecx
push eax
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00402b89
mov ecx, dword [esi + 8]
call fcn.00403ccc
mov ecx, dword [esi + 8]
call fcn.00403ed8
mov al, byte [ebp + 0xb]
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0
mov dword [ebp - 0x10], ecx
mov byte [ecx], al
call fcn.004029a7
push dword [ebp - 0x14]
call fcn.0041dec0
pop ecx
mov ecx, dword [ebp - 0x10]
push eax
push dword [ebp - 0x14]
call fcn.00402b89
sub esp, 0x10
lea eax, [ebp - 0x22]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
push edi
mov dword [ebp - 4], 9
call fcn.00404f96
mov ecx, dword [esi + 8]
or dword [ebp - 4], 0xffffffff
call fcn.004018d7
test al, al
je 0x40494e
mov al, byte [ebp + 0xb]
sub esp, 0x10
mov dword [ebp - 0x18], esp
mov edi, esp
jmp 0x4044e8
cmp eax, 4
je 0x40494e
cmp eax, 5
jne 0x4048a2
mov al, byte [0x454070]
push 0x40
mov byte [ebp - 0x25c], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x25b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp - 0x14]
lea edi, [eax - 0x100]
lea eax, [ebp - 0x25c]
push edi
push eax
call ebx
lea eax, [ebp - 0x25c]
push 0x44e1c8
push eax
call ebx
push dword [ebp - 0x14]
lea eax, [ebp - 0x25c]
push eax
call ebx
mov al, byte [ebp + 0xb]
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0
mov dword [ebp - 0x10], ecx
mov byte [ecx], al
call fcn.004029a7
lea eax, [ebp - 0x25c]
push eax
call fcn.0041dec0
pop ecx
mov ecx, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x25c]
push eax
call fcn.00402b89
mov ecx, dword [esi + 8]
call fcn.004038d9
mov al, byte [ebp + 0xb]
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0
mov dword [ebp - 0x10], ecx
mov byte [ecx], al
call fcn.004029a7
push edi
call fcn.0041dec0
pop ecx
mov ecx, dword [ebp - 0x10]
push eax
push edi
call fcn.00402b89
mov ecx, dword [esi + 8]
call fcn.00403ccc
jmp 0x404946
cmp eax, 6
jne 0x40494e
mov al, byte [0x454070]
push 0x40
mov byte [ebp - 0x360], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x35f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp - 0x14]
lea edi, [eax - 0x100]
lea eax, [ebp - 0x360]
push edi
push eax
call ebx
lea eax, [ebp - 0x360]
push 0x44e1c8
push eax
call ebx
push dword [ebp - 0x14]
lea eax, [ebp - 0x360]
push eax
call ebx
mov al, byte [ebp + 0xb]
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0
mov dword [ebp - 0x10], ecx
mov byte [ecx], al
call fcn.004029a7
push edi
call fcn.0041dec0
pop ecx
mov ecx, dword [ebp - 0x10]
push eax
push edi
call fcn.00402b89
sub esp, 0x10
lea eax, [ebp - 0x23]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
lea eax, [ebp - 0x360]
push eax
mov dword [ebp - 4], 0xa
call fcn.00404f96
mov ecx, dword [esi + 8]
or dword [ebp - 4], 0xffffffff
call fcn.004020e6
mov ecx, dword [esi + 8]
call fcn.00403ed8
inc dword [ebp - 0x20]
add dword [ebp - 0x14], 0x204
mov eax, dword [ebp - 0x20]
cmp eax, dword [esi + 0x83c]
jl 0x40443b
cmp dword [ebp - 0x1c], 0
jg 0x404974
mov dword [ebp - 0x1c], 0xa
push dword [ebp - 0x1c]
lea eax, [ebp - 0x66c]
push 0x44e1e8
push eax
call fcn.0041e050
add esp, 0xc
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x66c]
push eax
push str.Count
push str.Version
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringA]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
leave
ret 8