Function at 0x1001c590
Capabilities:
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 0x1001c894
test esi, esi
je 0x1001c894
cmp byte [0x10052928], 0
jne 0x1001c5eb
push 0x104
push 0x10052928
call dword [0x10040274]
push str.wininit.ini
push 0x10052928
call dword [0x10040300]
push 0x103
lea eax, [ebp - 0x20b]
push 0
push eax
mov byte [ebp - 0x20c], 0
call fcn.1000ada0
push 0x103
lea ecx, [ebp - 0x30f]
push 0
push ecx
mov byte [ebp - 0x310], 0
call fcn.1000ada0
push 0x103
lea edx, [ebp - 0x107]
push 0
push edx
mov byte [ebp - 0x108], 0
call fcn.1000ada0
mov ebx, dword [0x100400f4]
add esp, 0x24
push edi
call ebx
inc eax
cmp eax, 0x3fffffff
jle 0x1001c651
xor eax, eax
jmp 0x1001c66d
lea esi, [eax + eax]
mov eax, esi
call fcn.1000c5f0
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.10001e20
mov esi, dword [ebp - 0x51c]
mov edi, dword [0x10040270]
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
call edi
test eax, eax
je 0x1001c894
push esi
call ebx
inc eax
cmp eax, 0x3fffffff
jle 0x1001c699
xor eax, eax
jmp 0x1001c6b5
lea esi, [eax + eax]
mov eax, esi
call fcn.1000c5f0
mov edx, dword [ebp - 0x51c]
mov eax, esp
push 3
push esi
push edx
push eax
call fcn.10001e20
push 0x104
lea ecx, [ebp - 0x310]
push ecx
push eax
call edi
test eax, eax
je 0x1001c894
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.100353a6
push 0x100447d8
push 0x10052928
call fcn.10034546
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x1001c724
push 0x100447d4
push 0x10052928
call fcn.10034546
mov esi, eax
add esp, 8
test esi, esi
je 0x1001c894
push esi
call fcn.100352e8
push 0x207
lea edx, [ebp - 0x517]
push 0
push edx
mov byte [ebp - 0x518], 0
call fcn.1000ada0
push esi
lea eax, [ebp - 0x518]
push 0x208
push eax
call fcn.100351b0
add esp, 0x1c
test eax, eax
je 0x1001c79d
lea ecx, [ecx]
lea ecx, [ebp - 0x518]
push ecx
call fcn.1003b6a0
lea edx, [ebp - 0x518]
push str._rename_
push edx
call fcn.100347f0
add esp, 0xc
push esi
test eax, eax
jne 0x1001c7cb
lea eax, [ebp - 0x518]
push 0x208
push eax
call fcn.100351b0
add esp, 0xc
test eax, eax
jne 0x1001c760
push esi
push str._rename__n
call fcn.10034384
lea ecx, [ebp - 0x108]
push esi
push ecx
call fcn.10034384
add esp, 0x10
push esi
call fcn.1001a614
add esp, 4
mov eax, 1
jmp 0x1001c896
call fcn.10034f70
push 2
push 0
push esi
mov ebx, eax
call fcn.1003505f
push esi
call fcn.10034f70
add esp, 0x14
cmp ebx, eax
jne 0x1001c80c
lea edx, [ebp - 0x108]
push esi
push edx
call fcn.10034384
add esp, 8
push esi
call fcn.1001a614
add esp, 4
mov eax, 1
jmp 0x1001c896
sub eax, ebx
dec eax
push eax
mov dword [ebp - 0x51c], eax
call fcn.1000da70
mov edi, eax
add esp, 4
test edi, edi
je 0x1001c894
mov eax, dword [ebp - 0x51c]
push eax
push 0
push edi
call fcn.1000ada0
push 0
push ebx
push esi
call fcn.1003505f
mov ecx, dword [ebp - 0x51c]
push esi
push ecx
push 1
push edi
call fcn.10034dbf
push 0
push ebx
push esi
mov dword [ebp - 0x51c], eax
call fcn.1003505f
lea edx, [ebp - 0x108]
push esi
push edx
call fcn.10034384
mov eax, dword [ebp - 0x51c]
push esi
push 1
push eax
push edi
call fcn.10034afb
add esp, 0x4c
push edi
call fcn.1000c68e
add esp, 4
push esi
call fcn.1001a614
add esp, 4
mov eax, 1
jmp 0x1001c896
xor eax, eax
lea esp, [ebp - 0x528]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ad8e
mov esp, ebp
pop ebp
ret