Function at 0x1001c600
Capabilities:
Get common file path
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x51c
mov eax, dword [0x1004f0a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x51c], esi
test edi, edi
je 0x1001c904
test esi, esi
je 0x1001c904
cmp byte [0x10052948], 0
jne 0x1001c65b
push 0x104
push 0x10052948
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push 0x10052948
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0x103
lea eax, [ebp - 0x20b]
push 0
push eax
mov byte [ebp - 0x20c], 0
call fcn.1000ae30
push 0x103
lea ecx, [ebp - 0x30f]
push 0
push ecx
mov byte [ebp - 0x310], 0
call fcn.1000ae30
push 0x103
lea edx, [ebp - 0x107]
push 0
push edx
mov byte [ebp - 0x108], 0
call fcn.1000ae30
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0x24
push edi
call ebx
inc eax
cmp eax, 0x3fffffff
jle 0x1001c6c1
xor eax, eax
jmp 0x1001c6dd
lea esi, [eax + eax]
mov eax, esi
call fcn.1000c680
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.10002080
mov esi, dword [ebp - 0x51c]
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
call edi
test eax, eax
je 0x1001c904
push esi
call ebx
inc eax
cmp eax, 0x3fffffff
jle 0x1001c709
xor eax, eax
jmp 0x1001c725
lea esi, [eax + eax]
mov eax, esi
call fcn.1000c680
mov edx, dword [ebp - 0x51c]
mov eax, esp
push 3
push esi
push edx
push eax
call fcn.10002080
push 0x104
lea ecx, [ebp - 0x310]
push ecx
push eax
call edi
test eax, eax
je 0x1001c904
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x310]
push eax
push str._s_s_n
lea ecx, [ebp - 0x108]
push 0x103
push ecx
call fcn.100352b6
push 0x10044690
push 0x10052948
call fcn.10034456
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x1001c794
push 0x1004468c
push 0x10052948
call fcn.10034456
mov esi, eax
add esp, 8
test esi, esi
je 0x1001c904
push esi
call fcn.100351f8
push 0x207
lea edx, [ebp - 0x517]
push 0
push edx
mov byte [ebp - 0x518], 0
call fcn.1000ae30
push esi
lea eax, [ebp - 0x518]
push 0x208
push eax
call fcn.100350c0
add esp, 0x1c
test eax, eax
je 0x1001c80d
lea ecx, [ecx]
lea ecx, [ebp - 0x518]
push ecx
call fcn.1003b5b0
lea edx, [ebp - 0x518]
push str._rename_
push edx
call fcn.10034700
add esp, 0xc
push esi
test eax, eax
jne 0x1001c83b
lea eax, [ebp - 0x518]
push 0x208
push eax
call fcn.100350c0
add esp, 0xc
test eax, eax
jne 0x1001c7d0
push esi
push str._rename__n
call fcn.10034294
lea ecx, [ebp - 0x108]
push esi
push ecx
call fcn.10034294
add esp, 0x10
push esi
call fcn.1001a6b4
add esp, 4
mov eax, 1
jmp 0x1001c906
call fcn.10034e80
push 2
push 0
push esi
mov ebx, eax
call fcn.10034f6f
push esi
call fcn.10034e80
add esp, 0x14
cmp ebx, eax
jne 0x1001c87c
lea edx, [ebp - 0x108]
push esi
push edx
call fcn.10034294
add esp, 8
push esi
call fcn.1001a6b4
add esp, 4
mov eax, 1
jmp 0x1001c906
sub eax, ebx
dec eax
push eax
mov dword [ebp - 0x51c], eax
call fcn.1000db00
mov edi, eax
add esp, 4
test edi, edi
je 0x1001c904
mov eax, dword [ebp - 0x51c]
push eax
push 0
push edi
call fcn.1000ae30
push 0
push ebx
push esi
call fcn.10034f6f
mov ecx, dword [ebp - 0x51c]
push esi
push ecx
push 1
push edi
call fcn.10034ccf
push 0
push ebx
push esi
mov dword [ebp - 0x51c], eax
call fcn.10034f6f
lea edx, [ebp - 0x108]
push esi
push edx
call fcn.10034294
mov eax, dword [ebp - 0x51c]
push esi
push 1
push eax
push edi
call fcn.10034a0b
add esp, 0x4c
push edi
call fcn.1000c71e
add esp, 4
push esi
call fcn.1001a6b4
add esp, 4
mov eax, 1
jmp 0x1001c906
xor eax, eax
lea esp, [ebp - 0x528]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ae1e
mov esp, ebp
pop ebp
ret