Function at 0x100170b0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x644
mov eax, dword [0x100525d4]
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.10023380
add esp, 0xc
push esi
lea edx, [esp + 0x44]
push edx
call sym.Common.dll_Ordinal_1
lea ecx, [esp + 0x40]
call fcn.1001b480
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 0x10017128
jl 0x100173ad
cmp esi, eax
jb 0x100173ad
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 0x10017146
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x44]
lea esi, [esp + 0x28]
call fcn.1000e860
mov eax, dword [esp + 0x38]
push 6
add eax, 0xfffffffc
mov ecx, esi
call fcn.100174e0
push 0x3ff
lea ecx, [esp + 0x24d]
push 0
push ecx
mov byte [esp + 0x254], 0
call fcn.10023380
add esp, 0xc
lea edx, [esp + 0x40]
push 0x10048c28
push edx
call fcn.1001f665
mov edi, eax
add esp, 8
test edi, edi
jne 0x100171d7
cmp dword [esp + 0x3c], 8
jb 0x100171be
mov eax, dword [esp + 0x28]
push eax
call fcn.1001df62
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x640]
xor ecx, esp
call fcn.1001d39b
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esp + 0x28]
mov esi, 8
cmp dword [esp + 0x3c], esi
jae 0x100171ea
lea eax, [esp + 0x28]
push 0x10048c30
push eax
call fcn.1001f665
add esp, 8
mov ebx, eax
push edi
test ebx, ebx
jne 0x10017233
call fcn.1001e3ed
add esp, 4
cmp dword [esp + 0x3c], esi
jb 0x100171be
mov ecx, dword [esp + 0x28]
push ecx
call fcn.1001df62
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x640]
xor ecx, esp
call fcn.1001d39b
mov esp, ebp
pop ebp
ret 8
push 0x400
lea edx, [esp + 0x250]
push 1
push edx
call fcn.1001fa5a
mov esi, eax
push ebx
push esi
lea eax, [esp + 0x260]
push 1
push eax
call fcn.1001e14c
push edi
push 0x400
lea ecx, [esp + 0x270]
push 1
push ecx
call fcn.1001fa5a
add esp, 0x30
cmp esi, eax
jne 0x100172d7
xor eax, eax
test esi, esi
jle 0x1001728f
lea esp, [esp]
cmp byte [esp + eax + 0x248], 0x7e
je 0x100172be
inc eax
cmp eax, esi
jl 0x10017280
push ebx
push esi
lea edx, [esp + 0x250]
push 1
push edx
call fcn.1001e14c
push edi
push 0x400
lea eax, [esp + 0x260]
push 1
push eax
call fcn.1001fa5a
add esp, 0x20
cmp esi, eax
je 0x10017276
jmp 0x100172d7
cmp eax, 1
jle 0x100172d7
push ebx
push eax
lea ecx, [esp + 0x250]
push 1
push ecx
call fcn.1001e14c
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.1001dca7
push edi
push 0x400
lea edx, [esp + 0x258]
push 1
push edx
mov byte [esp + 0x27], 0
call fcn.1001fa5a
add esp, 0x18
cmp esi, eax
jne 0x1001737c
cmp byte [esp + 0xf], 0
jne 0x1001734c
xor eax, eax
test esi, esi
jle 0x10017360
cmp byte [esp + eax + 0x248], 0x7e
jne 0x1001732e
cmp esi, eax
jg 0x10017335
inc eax
cmp eax, esi
jl 0x10017320
jmp 0x10017360
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 0x10017358
push ebx
push esi
push 1
lea eax, [esp + 0x254]
push eax
call fcn.1001e14c
add esp, 0x10
push edi
push 0x400
lea ecx, [esp + 0x250]
push 1
push ecx
call fcn.1001fa5a
add esp, 0x10
cmp esi, eax
je 0x10017313
push edi
call fcn.1001e3ed
add esp, 4
push ebx
call fcn.1001e3ed
add esp, 4
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x3c], 8
jb 0x100173ad
mov eax, dword [esp + 0x28]
push eax
call fcn.1001df62
add esp, 4
mov ecx, dword [esp + 0x64c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.1001d39b
mov esp, ebp
pop ebp
ret 8