Function at 0x10107730
Capabilities:
Copy file
Delete 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
push ebp
mov ebp, dword [esp + 0x238]
push esi
push edi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x244]
push 0
push 0x102fc244
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], eax
call fcn.1005ed90
add esp, 8
mov ecx, ecx
cmp dword [0x101d31d8], 0xffffee2a
push 0x1ff
lea ecx, [esp + 0x31]
push 0
push ecx
mov byte [esp + 0x38], 0
call fcn.1012ea60
add esp, 0xc
cmp dword [0x101d31d4], 0xffff831c
lea edx, [esp + 0x2c]
mov eax, ebp
sub edx, ebp
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x101077c1
push ebx
pop ebx
lea edx, [esp + 0x2c]
push 0x10198bac
push edx
call fcn.1005ed70
add esp, 8
cmp dword [0x101d31d8], 0x11d5
mov cl, 0x74
mov byte [esp + 0x24], 0x2e
mov byte [esp + 0x25], cl
mov byte [esp + 0x26], 0x6d
mov byte [esp + 0x27], 0x70
mov byte [esp + 0x28], cl
mov byte [esp + 0x29], 0
cmp dword [0x101d31dc], 0xffffb321
test eax, eax
je 0x10107839
lea ecx, [esp + 0x24]
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 0x10107821
cmp dword [0x101d31d4], 0xffff831c
jmp 0x1010786e
lea eax, [esp + 0x24]
mov edx, eax
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10107840
lea edi, [esp + 0x2c]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x10107852
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 edx
pop edx
mov dh, dh
mov esi, esi
mov byte [esp + 0x10], 0x72
mov byte [esp + 0x11], 0x62
mov byte [esp + 0x12], 0
cmp dword [0x101d31dc], 0x4cde
lea ecx, [esp + 0x10]
push ecx
push ebp
call fcn.1012f564
add esp, 8
mov edi, eax
cmp dword [0x101d31d0], 0xffff901b
test edi, edi
je 0x10107a43
push 2
push 0
push edi
call fcn.1012f41b
add esp, 0xc
cmp dword [0x101d31d4], 0x7ce3
push edi
call fcn.1012f326
add esp, 4
mov ebx, eax
cmp dword [0x101d31d0], 0xffff901b
push 0
push 0
push edi
call fcn.1012f41b
add esp, 0xc
cmp dword [0x101d31e0], 0x6511
push ebx
call fcn.1012de1c
add esp, 4
mov esi, eax
cmp dword [0x101d31f4], 0x1303
test esi, esi
je 0x10107918
push edi
push ebx
push 1
push esi
call fcn.1012f173
add esp, 0x10
mov ebp, ebp
push edi
call fcn.1012ee5b
add esp, 4
cmp dword [0x101d31e8], 0x2841
test esi, esi
je 0x10107a43
push ebx
push esi
call fcn.1005dc10
add esp, 8
test eax, eax
je 0x10107a06
mov edx, dword [esp + 0x14]
push edx
push ebx
push esi
call fcn.1005d9f0
add esp, 0xc
mov ebx, eax
cmp dword [0x101d31d8], 0xffffee2a
test ebx, ebx
jle 0x10107a2e
mov byte [esp + 0x24], 0x77
mov byte [esp + 0x25], 0x62
mov byte [esp + 0x26], 0
push ebx
pop ebx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.1012f564
add esp, 8
mov edi, eax
nop
test edi, edi
je 0x10107a2e
push edi
push ebx
lea edx, [esi + 8]
push 1
push edx
call fcn.101318e9
add esp, 0x10
push ecx
pop ecx
push edi
call fcn.1012ee5b
add esp, 4
mov dh, dh
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov bl, bl
push 0
push ebp
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
cmp dword [0x101d31ec], 0x25b6
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, eax
mov eax, dword [esp + 0x14]
push eax
push ebp
call fcn.1005dc30
add esp, 8
mov bh, bh
jmp 0x10107a2e
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
push ebp
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ah, ah
mov ecx, dword [esp + 0x14]
push ecx
push ebp
call fcn.1005dc30
add esp, 8
push eax
pop eax
push esi
call fcn.1012dedf
add esp, 4
cmp dword [0x101d31d4], 0xffff831c
jmp 0x10107a7b
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push ebp
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp dword [0x101d31e8], 0x2841
mov edx, dword [esp + 0x14]
push edx
push ebp
call fcn.1005dc30
add esp, 8
cmp dword [0x101d31d0], 0x6fe4
push 0x102fc244
call fcn.1005ee50
add esp, 4
cmp dword [0x101d31ec], 0x25b6
cmp dword [0x101d31ec], 0x25b6
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1012e3ba
add esp, 0x220
ret 0x14