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

Disassembly:
push ebp
mov ecx, 0x5f4cc0
mov eax, dword fs:[0x18]
mov ebp, esp
push edi
push esi
xor esi, esi
push ebx
mov ebx, ecx
sub esp, 0x138
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x128], ecx
jmp 0x52896e
test eax, eax
je 0x528b10
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_CloseHandle]
lea eax, [ebp - 0x110]
sub esp, 4
mov dword [esp + 0x14], str..winesharing1.ini
mov dword [esp + 0x10], 0x104
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.ProfileInt
mov dword [esp], 0x5f393d
call dword [sym.imp.kernel32.dll_GetPrivateProfileStringA]
sub esp, 0x18
mov dword [ebp - 0x114], eax
call fcn.0057d110
mov dword [eax], 0x5f3817
mov dword [eax + 4], 0x199
mov eax, dword [ebp - 0x114]
mov dword [esp + 8], esi
cmp eax, 5
mov dword [esp + 0xc], eax
sete al
mov dword [esp + 4], str._d:_test_failed__number_of_characters_copied:__ld_instead_of_5_n
movzx eax, al
mov dword [esp], eax
call fcn.00527880
call fcn.0057d110
add esi, 1
add ebx, 0x14
mov dword [eax], 0x5f3817
mov dword [eax + 4], 0x1a9
mov dword [esp], str..winesharing1.ini
call dword [sym.imp.kernel32.dll_DeleteFileA]
sub esp, 4
mov dword [esp + 4], str.delete_failed_n
mov dword [esp], eax
call fcn.00527880
cmp esi, 9
je 0x528bc0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov eax, dword [ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [ebx]
mov dword [esp], str..winesharing1.ini
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_CreateFileA]
sub esp, 0x1c
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x5f3817
mov dword [eax + 4], 0x18d
xor eax, eax
cmp edi, 0xffffffff
setne al
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], str._d:_CreateFile_failed_n
call fcn.00527880
mov eax, dword [ebp - 0x118]
mov dword [eax + 0x34], 0xdeadbeef
mov dword [esp + 0xc], str..winesharing1.ini
mov dword [esp + 8], str.12345
mov dword [esp + 4], str.ProfileInt
mov dword [esp], 0x5f393d
call dword [sym.imp.kernel32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebx + 8]
sub esp, 0x10
test ecx, ecx
je 0x5288a0
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x120], ecx
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x124], eax
call fcn.0057d110
mov dword [eax], 0x5f3817
mov dword [eax + 4], 0x1a0
xor eax, eax
mov dword [esp + 8], esi
mov dword [esp + 4], str._d:_WritePrivateProfileString_succeeded_n
mov edx, dword [ebp - 0x11c]
test edx, edx
sete al
mov dword [esp], eax
call fcn.00527880
mov edx, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x120]
test edx, edx
je 0x528e50
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_CloseHandle]
lea eax, [ebp - 0x110]
sub esp, 4
mov dword [esp + 0x14], str..winesharing1.ini
mov dword [esp + 0x10], 0x104
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.ProfileInt
mov dword [esp], 0x5f393d
call dword [sym.imp.kernel32.dll_GetPrivateProfileStringA]
sub esp, 0x18
mov dword [ebp - 0x114], eax
call fcn.0057d110
mov dword [eax], 0x5f3817
mov dword [eax + 4], 0x1a6
mov eax, dword [ebp - 0x114]
mov dword [esp + 8], esi
mov dword [esp + 4], str._d:_test_failed__number_of_characters_copied:__ld_instead_of_0_n
test eax, eax
mov dword [esp + 0xc], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00527880
jmp 0x52892d
call fcn.0057d110
mov ecx, dword [ebp - 0x118]
mov dword [eax], 0x5f3817
mov dword [eax + 4], 0x194
mov eax, dword [ecx + 0x34]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 4], str._d:_WritePrivateProfileString_failed_with_error__lu_n
mov eax, dword [ecx + 0x34]
mov ecx, dword [0x8f0770]
cmp dword [ebx + 0x10], eax
sete dl
xor eax, eax
test ecx, ecx
sete al
and eax, edx
mov dword [esp], eax
call fcn.00527880
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_CloseHandle]
lea eax, [ebp - 0x110]
sub esp, 4
mov dword [esp + 0x14], str..winesharing1.ini
mov dword [esp + 0x10], 0x104
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.ProfileInt
mov dword [esp], 0x5f393d
call dword [sym.imp.kernel32.dll_GetPrivateProfileStringA]
sub esp, 0x18
mov dword [ebp - 0x114], eax
call fcn.0057d110
mov dword [eax], 0x5f3817
mov dword [eax + 4], 0x19b
jmp 0x528adb
mov ecx, dword [ebp - 0x128]
mov edi, dword fs:[0x18]
mov dword [ebp - 0x11c], ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [esp], str..winesharing2.ini
call dword [sym.imp.kernel32.dll_CreateFileA]
sub esp, 0x1c
mov ebx, eax
lea eax, [ebp - 0x110]
mov dword [esp + 0xc], str.ProfileInt
mov dword [esp + 8], 0x5f393d
mov dword [esp + 4], str.__s__r_n_s123_r_n
mov dword [esp], eax
call fcn.00526ac0
call fcn.0057d110
mov dword [eax], 0x5f3817
mov dword [eax + 4], 0x1ae
lea eax, [ebp - 0x110]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_strlen]
lea edx, [ebp - 0x114]
mov dword [esp], ebx
mov dword [esp + 8], eax
lea eax, [ebp - 0x110]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 0
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
mov dword [esp + 4], str.failed_to_write_n
mov dword [esp], eax
call fcn.00527880
mov dword [esp], ebx
xor ebx, ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [ebp - 0x118], edi
mov edi, dword [ebp - 0x11c]
sub esp, 4
jmp 0x528d0c
call fcn.0057d110
mov dword [eax], 0x5f3817
mov dword [eax + 4], 0x1b9
mov eax, dword [ebp - 0x118]
mov eax, dword [eax + 0x34]
mov dword [esp + 8], ebx
mov dword [esp + 4], str._d:_GetPrivateProfileString_failed_with_error__lu_n
mov dword [esp + 0xc], eax
mov edx, dword [ebp - 0x11c]
mov dword [esp], edx
call fcn.00527880
mov dword [esp], esi
add ebx, 1
add edi, 0x14
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
cmp ebx, 9
je 0x528e10
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov eax, dword [edi + 4]
mov dword [esp + 8], eax
mov eax, dword [edi]
mov dword [esp], str..winesharing2.ini
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_CreateFileA]
sub esp, 0x1c
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5f3817
mov dword [eax + 4], 0x1b5
xor eax, eax
cmp esi, 0xffffffff
setne al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str._d:_CreateFile_failed_n
call fcn.00527880
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x110]
mov dword [eax + 0x34], 0xdeadbeef
mov dword [esp + 0x14], str..winesharing2.ini
mov dword [esp + 0x10], 0x104
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], str.ProfileInt
mov dword [esp], 0x5f393d
call dword [sym.imp.kernel32.dll_GetPrivateProfileStringA]
mov edx, eax
mov eax, dword [edi + 0xc]
sub esp, 0x18
mov dword [ebp - 0x11c], edx
test eax, eax
je 0x528cb8
call fcn.0057d110
mov dword [eax], 0x5f3817
mov dword [eax + 4], 0x1bb
xor eax, eax
mov dword [esp + 8], ebx
mov dword [esp + 4], str._d:_GetPrivateProfileString_succeeded_n
mov edx, dword [ebp - 0x11c]
test edx, edx
sete al
mov dword [esp], eax
call fcn.00527880
jmp 0x528cf1
call fcn.0057d110
mov dword [eax], 0x5f3817
mov dword [eax + 4], 0x1be
mov dword [esp], str..winesharing2.ini
call dword [sym.imp.kernel32.dll_DeleteFileA]
sub esp, 4
mov dword [esp + 4], str.delete_failed_n
mov dword [esp], eax
call fcn.00527880
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x11c], ecx
call fcn.0057d110
mov ecx, dword [ebp - 0x11c]
mov dword [eax], 0x5f3817
mov dword [eax + 4], 0x1a2
mov dword [esp + 0x10], ecx
mov eax, dword [ebp - 0x124]
mov dword [esp + 8], esi
cmp ecx, eax
mov dword [esp + 0xc], eax
sete al
mov dword [esp + 4], str._d:_WritePrivateProfileString_failed_with_error__lu__lu_n
movzx eax, al
mov dword [esp], eax
call fcn.00527880
jmp 0x528a7d