Function at 0x10002c40
Capabilities:
Check if file exists
Create directory
Delete file
Get common file path
Get file attributes
Move file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x724
push ebx
push esi
push edi
push 0x208
mov ebx, ecx
mov edi, edx
push 0
push ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ebx
call fcn.100010d0
add esp, 0xc
push ebx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x1000302d
push dword [0x100168a4]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebx
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1000302d
test al, 0x10
je 0x1000302d
push dword [0x100168ac]
lea eax, [esp + 0x324]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [ebp + 8], 2
jne 0x10002cd9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea edx, [esp + 0x34]
mov ecx, eax
call fcn.10001290
mov eax, edx
push eax
jmp 0x10002cde
push 0x100163c0
lea eax, [esp + 0x324]
push eax
call esi
push ebx
lea eax, [esp + 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [0x100168a8]
lea eax, [esp + 0x11c]
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [esp + 0x118]
push eax
push str.0CDEFGHIef
push dword [0x100168b0]
push 0x100163c0
call esi
lea eax, [esp + 0x118]
push eax
lea eax, [esp + 0x324]
push eax
push dword [0x100168b4]
push 0x100163c0
call esi
push 0x208
push 0
push edi
call fcn.100010d0
add esp, 0xc
lea edx, [esp + 0xb0]
lea ecx, [esp + 0x118]
push dword [0x100168e0]
call fcn.10002a30
add esp, 4
test eax, eax
jne 0x10002d98
push dword [0x10016748]
lea edx, [esp + 0xb4]
lea ecx, [esp + 0x11c]
call fcn.10002a30
add esp, 4
test eax, eax
je 0x10002e37
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x118]
push eax
push 0x32
lea eax, [esp + 0x50]
push eax
push 0
push dword [0x100168b4]
lea eax, [esp + 0xc4]
push eax
call esi
test eax, eax
jne 0x10002de9
lea eax, [esp + 0x118]
push eax
push 0x32
lea eax, [esp + 0x50]
push eax
push 0
push dword [0x10016748]
lea eax, [esp + 0xc4]
push eax
call esi
cmp eax, 3
jbe 0x10002e37
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ax, word [esp + 0x48]
xor edx, edx
test ax, ax
je 0x10002e27
lea ecx, [esp + 0x48]
movzx esi, ax
lea ebx, [edx + 0x5c]
cmp si, 0x2f
jne 0x10002e10
mov word [ecx], bx
inc edx
lea ecx, [esp + 0x48]
movzx eax, word [ecx + edx*2]
lea ecx, [ecx + edx*2]
mov esi, eax
test ax, ax
jne 0x10002e07
mov ebx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [esp + 0x48]
push eax
push edi
call esi
jmp 0x10002e3d
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ax, word [esp + 0x320]
xor edx, edx
test ax, ax
je 0x10002e87
lea ecx, [esp + 0x320]
movzx edi, ax
lea ebx, [edx + 0x5c]
nop dword [eax]
cmp di, 0x2f
jne 0x10002e69
mov word [ecx], bx
inc edx
lea ecx, [esp + 0x320]
movzx eax, word [ecx + edx*2]
lea ecx, [ecx + edx*2]
mov edi, eax
test ax, ax
jne 0x10002e60
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x320]
push eax
push ebx
call esi
mov eax, dword [0x100168cc]
mov dword [esp + 0x20], eax
mov eax, dword [0x100168d0]
mov dword [esp + 0x24], eax
mov eax, dword [0x100168d4]
mov dword [esp + 0x28], eax
mov eax, dword [0x100168d8]
mov dword [esp + 0x2c], eax
mov eax, dword [0x100168dc]
push ebx
mov dword [esp + 0x20], 5
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10003009
test al, 0x10
je 0x10003009
mov eax, dword [ebp + 8]
cmp eax, 1
je 0x10002fbc
cmp eax, 2
jne 0x10002f17
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, ebx
call fcn.10002ac0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x1000301a
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
call esi
push ebx
mov edi, eax
call esi
mov ecx, dword [esp + 0x10]
mov esi, eax
push esi
push edi
mov edx, ebx
call fcn.10003d50
mov ecx, dword [esp + 0x18]
add esp, 8
lea eax, [ecx + edi*2]
xor edi, edi
mov dword [esp + 0x14], eax
lea eax, [ebx + esi*2]
mov dword [esp + 0x18], eax
nop dword [eax]
nop word [eax + eax]
mov eax, dword [edi + 0x1000f2fc]
mov esi, dword [eax*4 + 0x10016730]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, dword [esp + 0x10]
mov edx, ebx
push 0
call fcn.10002330
mov eax, dword [esp + 0x18]
xor ecx, ecx
add edi, 4
add esp, 4
mov word [eax], cx
mov eax, dword [esp + 0x18]
mov word [eax], cx
mov ecx, dword [esp + 0x10]
cmp edi, 8
jb 0x10002f60
mov ecx, ebx
call fcn.10002ac0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea eax, [esp + 0x528]
lea ecx, [esi + esi]
push ecx
push ebx
push eax
call section..text
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push dword [0x1001680c]
lea eax, [esp + 0x530]
lea eax, [eax + esi*2]
push eax
call fcn.10001220
add esp, 0xc
lea eax, [esp + 0x528]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [esp + 0x1c]
mov edx, ebx
push eax
mov ecx, edi
call fcn.10002330
add esp, 4
mov ecx, ebx
call fcn.10002ac0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret