Function at 0x413cd1
Capabilities:
Check if file exists
Create directory
Delete file
Move file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x770
push esi
push edi
mov dword [ebp - 0x770], ecx
mov dword [ebp - 0x764], 0
mov dword [ebp - 0x314], 0
mov dword [ebp - 0x760], 0
mov dword [ebp - 0x310], 0
mov dword [ebp - 0x4a8], 0
mov byte [ebp - 0x418], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x417]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x73c], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x73b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x30c], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x30b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [0x439a1c]
mov byte [ebp - 0x104], al
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, dword [ebp - 0x770]
add ecx, 4
call fcn.00418a30
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0
mov edx, dword [ebp + 0x10]
push edx
push 0
push str.Count
push 0x4343f8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x310], eax
cmp dword [ebp - 0x310], 0
jne 0x413dbd
jmp 0x4141d1
mov dword [ebp - 0x760], 0
jmp 0x413dd8
mov eax, dword [ebp - 0x760]
add eax, 1
mov dword [ebp - 0x760], eax
mov ecx, dword [ebp - 0x760]
cmp ecx, dword [ebp - 0x310]
jge 0x4141b7
xor edx, edx
mov dl, byte [0x4331a0]
test edx, edx
jne 0x413dfb
jmp 0x4141cf
mov dword [ebp - 0x4a8], 0
mov eax, dword [ebp - 0x760]
push eax
push 0x434408
push 0x434410
lea ecx, [ebp - 0x75c]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
mov edx, dword [ebp + 0x10]
push edx
push 0x104
lea eax, [ebp - 0x418]
push eax
push 0
lea ecx, [ebp - 0x75c]
push ecx
push 0x434418
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0x314], eax
cmp dword [ebp - 0x314], 0
jne 0x413e5e
jmp 0x4141cd
lea edx, [ebp - 0x418]
test edx, edx
jne 0x413e6d
jmp 0x4141cb
lea eax, [ebp - 0x418]
push eax
mov ecx, dword [ebp - 0x770]
add ecx, 0x20
push ecx
call fcn.00418780
and eax, 0xff
test eax, eax
je 0x413e91
jmp 0x413dc9
lea edx, [ebp - 0x534]
push edx
lea eax, [ebp - 0x418]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp - 0x770]
call fcn.00411d4d
mov dword [ebp - 0x314], eax
cmp dword [ebp - 0x314], 0
jne 0x413ec2
jmp 0x4141c9
lea edx, [ebp - 0x534]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x434428
lea ecx, [ebp - 0x73c]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea edx, [ebp - 0x4a4]
push edx
lea eax, [ebp - 0x73c]
push eax
mov ecx, dword [ebp - 0x770]
call fcn.004141db
mov dword [ebp - 0x314], eax
cmp dword [ebp - 0x314], 0
jne 0x413f16
mov dword [ebp - 0x4a8], 1
jmp 0x413f56
lea ecx, [ebp - 0x43e]
push ecx
lea edx, [ebp - 0x4ce]
push edx
call sub.MSVCRT.dll_strcmp
add esp, 8
mov dword [ebp - 0x314], eax
lea eax, [ebp - 0x452]
push eax
lea ecx, [ebp - 0x4e2]
push ecx
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
je 0x413f56
mov dword [ebp - 0x4a8], 1
cmp dword [ebp - 0x4a8], 0
je 0x414132
mov dword [ebp - 0x768], 0
cmp dword [ebp - 0x768], 0x7fffffff
jge 0x413fcf
mov edx, dword [ebp - 0x768]
push edx
lea eax, [ebp - 0x534]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x434430
lea edx, [ebp - 0x30c]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
lea eax, [ebp - 0x30c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov dword [ebp - 0x314], eax
cmp dword [ebp - 0x314], 0
jne 0x413fbe
jmp 0x413fcf
mov ecx, dword [ebp - 0x768]
add ecx, 1
mov dword [ebp - 0x768], ecx
jmp 0x413f6d
mov edx, dword [ebp - 0x768]
sub edx, 1
push edx
lea eax, [ebp - 0x534]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str._s_s_d
lea edx, [ebp - 0x73c]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
mov dword [ebp - 0x76c], 0
lea eax, [ebp - 0x76c]
push eax
lea ecx, [ebp - 0x73c]
push ecx
call fcn.00406092
add esp, 8
mov dword [ebp - 0x314], eax
cmp dword [ebp - 0x314], 0
je 0x414132
mov edx, dword [ebp - 0x76c]
push edx
push 0x434440
lea eax, [ebp - 0x452]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [ebp - 0x452]
push ecx
lea edx, [ebp - 0x4e2]
push edx
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
jne 0x414132
push str.KANUpdate
mov eax, dword [ebp + 8]
push eax
push str._s_s_
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
push 0
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x534]
push eax
lea ecx, [ebp - 0x104]
push ecx
call sub.MSVCRT.dll_strcat
add esp, 8
lea edx, [ebp - 0x104]
push edx
lea eax, [ebp - 0x73c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov dword [ebp - 0x314], eax
cmp dword [ebp - 0x314], 0
je 0x414132
lea ecx, [ebp - 0x534]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x434458
lea eax, [ebp - 0x73c]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea ecx, [ebp - 0x104]
push ecx
lea edx, [ebp - 0x73c]
push edx
call fcn.00406dc2
add esp, 8
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x4a8], 0
mov ecx, dword [ebp - 0x770]
cmp dword [ecx + 0x30], 0
jne 0x414132
mov edx, dword [ebp - 0x770]
mov dword [edx + 0x30], 1
cmp dword [ebp - 0x4a8], 0
je 0x4141b2
lea eax, [ebp - 0x418]
push eax
mov ecx, dword [ebp - 0x770]
call fcn.00417392
mov dword [ebp - 0x314], eax
cmp dword [ebp - 0x314], 0
jne 0x414161
jmp 0x413dc9
lea ecx, [ebp - 0x502]
push ecx
call dword [sym.imp.MSVCRT.dll_atol]
add esp, 4
mov edx, dword [ebp + 0x14]
mov ecx, dword [edx]
add ecx, eax
mov edx, dword [ebp + 0x14]
mov dword [edx], ecx
lea eax, [ebp - 0x534]
push eax
mov ecx, dword [ebp - 0x770]
call fcn.00412e70
sub esp, 0x8c
mov ecx, 0x23
lea esi, [ebp - 0x534]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x770]
add ecx, 4
call fcn.00418a80
jmp 0x413dc9
mov dword [ebp - 0x764], 1
mov eax, dword [ebp - 0x764]
jmp 0x4141d3
jmp 0x4141c1
jmp 0x4141c1
jmp 0x4141c1
jmp 0x4141c1
jmp 0x4141c1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10