Function at 0x10017110
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x644
mov eax, dword [0x100505e4]
xor eax, esp
mov dword [esp + 0x640], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x4a]
push ecx
mov word [esp + 0x4c], ax
call fcn.1002a240
add esp, 0xc
push esi
lea edx, [esp + 0x44]
push edx
call sym.Common.dll_Ordinal_1
lea ecx, [esp + 0x40]
call fcn.10023550
mov esi, eax
mov eax, dword [ebp + 0xc]
mov ecx, edx
cdq
cmp ecx, edx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
jg 0x10017188
jl 0x1001740d
cmp esi, eax
jb 0x1001740d
xor eax, eax
mov word [esp + 0x28], ax
lea eax, [esp + 0x40]
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100171a6
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x44]
lea esi, [esp + 0x28]
call fcn.1000e890
mov eax, dword [esp + 0x38]
push 6
add eax, 0xfffffffc
mov ecx, esi
call fcn.10017540
push 0x3ff
lea ecx, [esp + 0x24d]
push 0
push ecx
mov byte [esp + 0x254], 0
call fcn.1002a240
add esp, 0xc
lea edx, [esp + 0x40]
push 0x10046c28
push edx
call fcn.10026545
mov edi, eax
add esp, 8
test edi, edi
jne 0x10017237
cmp dword [esp + 0x3c], 8
jb 0x1001721e
mov eax, dword [esp + 0x28]
push eax
call fcn.10024e42
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x640]
xor ecx, esp
call fcn.10024280
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esp + 0x28]
mov esi, 8
cmp dword [esp + 0x3c], esi
jae 0x1001724a
lea eax, [esp + 0x28]
push 0x10046c30
push eax
call fcn.10026545
add esp, 8
mov ebx, eax
push edi
test ebx, ebx
jne 0x10017293
call fcn.100252cd
add esp, 4
cmp dword [esp + 0x3c], esi
jb 0x1001721e
mov ecx, dword [esp + 0x28]
push ecx
call fcn.10024e42
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x640]
xor ecx, esp
call fcn.10024280
mov esp, ebp
pop ebp
ret 8
push 0x400
lea edx, [esp + 0x250]
push 1
push edx
call fcn.1002693a
mov esi, eax
push ebx
push esi
lea eax, [esp + 0x260]
push 1
push eax
call fcn.1002502c
push edi
push 0x400
lea ecx, [esp + 0x270]
push 1
push ecx
call fcn.1002693a
add esp, 0x30
cmp esi, eax
jne 0x10017337
xor eax, eax
test esi, esi
jle 0x100172ef
lea esp, [esp]
cmp byte [esp + eax + 0x248], 0x7e
je 0x1001731e
inc eax
cmp eax, esi
jl 0x100172e0
push ebx
push esi
lea edx, [esp + 0x250]
push 1
push edx
call fcn.1002502c
push edi
push 0x400
lea eax, [esp + 0x260]
push 1
push eax
call fcn.1002693a
add esp, 0x20
cmp esi, eax
je 0x100172d6
jmp 0x10017337
cmp eax, 1
jle 0x10017337
push ebx
push eax
lea ecx, [esp + 0x250]
push 1
push ecx
call fcn.1002502c
add esp, 0x10
mov edx, dword [esp + 0x18]
sub dword [esp + 0x10], edx
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
sbb dword [esp + 0x14], eax
push ecx
push edi
call fcn.10024b87
push edi
push 0x400
lea edx, [esp + 0x258]
push 1
push edx
mov byte [esp + 0x27], 0
call fcn.1002693a
add esp, 0x18
cmp esi, eax
jne 0x100173dc
cmp byte [esp + 0xf], 0
jne 0x100173ac
xor eax, eax
test esi, esi
jle 0x100173c0
cmp byte [esp + eax + 0x248], 0x7e
jne 0x1001738e
cmp esi, eax
jg 0x10017395
inc eax
cmp eax, esi
jl 0x10017380
jmp 0x100173c0
push ebx
mov ecx, esi
sub ecx, eax
push ecx
push 1
lea edx, [esp + eax + 0x254]
mov byte [esp + 0x1b], 1
push edx
jmp 0x100173b8
push ebx
push esi
push 1
lea eax, [esp + 0x254]
push eax
call fcn.1002502c
add esp, 0x10
push edi
push 0x400
lea ecx, [esp + 0x250]
push 1
push ecx
call fcn.1002693a
add esp, 0x10
cmp esi, eax
je 0x10017373
push edi
call fcn.100252cd
add esp, 4
push ebx
call fcn.100252cd
add esp, 4
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x3c], 8
jb 0x1001740d
mov eax, dword [esp + 0x28]
push eax
call fcn.10024e42
add esp, 4
mov ecx, dword [esp + 0x64c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.10024280
mov esp, ebp
pop ebp
ret 8