Function at 0x10107420
Capabilities:
Delete file
Read .ini file
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x220
mov eax, dword [0x101e5aec]
xor eax, esp
mov dword [esp + 0x21c], eax
mov eax, dword [esp + 0x224]
mov ecx, dword [esp + 0x228]
mov edx, dword [esp + 0x22c]
push ebx
mov ebx, dword [esp + 0x234]
push esi
push edi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x240]
push 0
push 0x102fc244
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], eax
call fcn.1005ed90
add esp, 8
mov ecx, ecx
push ecx
pop ecx
push 0x1ff
lea ecx, [esp + 0x2d]
push 0
push ecx
mov byte [esp + 0x34], 0
call fcn.1012ea60
add esp, 0xc
xchg ebx, eax
xchg ebx, eax
lea edx, [esp + 0x28]
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x101074a0
cmp dword [0x101d31e8], 0x2841
lea edx, [esp + 0x28]
push 0x10198bac
push edx
call fcn.1005ed70
add esp, 8
mov bl, bl
mov cl, 0x74
mov byte [esp + 0x20], 0x2e
mov byte [esp + 0x21], cl
mov byte [esp + 0x22], 0x6d
mov byte [esp + 0x23], 0x70
mov byte [esp + 0x24], cl
mov byte [esp + 0x25], 0
cmp dword [0x101d31ec], 0xffffda49
test eax, eax
je 0x10107510
lea ecx, [esp + 0x20]
mov edx, eax
mov eax, ecx
sub edx, eax
mov al, byte [ecx]
mov byte [edx + ecx], al
add ecx, 1
test al, al
jne 0x10107500
mov bl, bl
jmp 0x10107544
lea eax, [esp + 0x20]
mov edx, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10107516
lea edi, [esp + 0x28]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x10107528
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
pop eax
cmp dword [0x101d31d8], 0xffffee2a
cmp dword [0x101d31f4], 0x1303
mov byte [esp + 0xc], 0x72
mov byte [esp + 0xd], 0x62
mov byte [esp + 0xe], 0
mov ebp, ebp
lea ecx, [esp + 0xc]
push ecx
push ebx
call fcn.1012f564
add esp, 8
mov edi, eax
mov ah, ah
test edi, edi
je 0x101076f3
push ebp
push 2
push 0
push edi
call fcn.1012f41b
add esp, 0xc
cmp dword [0x101d31d8], 0x11d5
push edi
call fcn.1012f326
add esp, 4
mov ebp, eax
cmp dword [0x101d31e8], 0xffffd7be
push 0
push 0
push edi
call fcn.1012f41b
add esp, 0xc
mov bl, bl
push ebp
call fcn.1012de1c
add esp, 4
mov esi, eax
cmp dword [0x101d31e4], 0x5bc3
test esi, esi
je 0x101075ef
push edi
push ebp
push 1
push esi
call fcn.1012f173
add esp, 0x10
cmp dword [0x101d31e8], 0xffffd7be
push edi
call fcn.1012ee5b
add esp, 4
mov edi, edi
test esi, esi
je 0x101076f2
push ebp
push esi
call fcn.1005dc10
add esp, 8
test eax, eax
je 0x101076c8
mov edx, dword [esp + 0x14]
push edx
push ebp
push esi
call fcn.1005d9f0
add esp, 0xc
mov ebp, eax
cmp dword [0x101d31d0], 0xffff901b
test ebp, ebp
jle 0x101076e7
mov byte [esp + 0x14], 0x77
mov byte [esp + 0x15], 0x62
mov byte [esp + 0x16], 0
mov edx, edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.1012f564
add esp, 8
mov edi, eax
cmp dword [0x101d31d4], 0xffff831c
test edi, edi
je 0x101076e7
push edi
push ebp
lea edx, [esi + 8]
push 1
push edx
call fcn.101318e9
add esp, 0x10
nop
push edi
call fcn.1012ee5b
add esp, 4
cmp dword [0x101d31e4], 0x5bc3
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x20]
push 0x2ee0
push ecx
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ebx
pop ebx
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [0x101d31f4], 0x1303
jmp 0x101076e7
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push ebx
push 0x2ee0
push edx
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ebp, ebp
push esi
call fcn.1012dedf
add esp, 4
mov edi, edi
pop ebp
push 0x102fc244
call fcn.1005ee50
add esp, 4
cmp dword [0x101d31ec], 0x25b6
push eax
pop eax
mov ecx, dword [esp + 0x228]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1012e3ba
add esp, 0x220
ret 0x14