Function at 0x1006e4f8
Capabilities:
Delete file
Get file size
Read file on windows
Set file attributes
Timestomp file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
push ebx
push esi
xor ebx, ebx
push edi
push ebx
call fcn.100680fb
mov esi, dword [ebp + 8]
pop ecx
cmp esi, ebx
je 0x1006ebb7
cmp word [esi], bx
je 0x1006ebb7
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x1006ebb7
cmp word [edi], bx
je 0x1006ebb7
cmp dword [0x101aef34], ebx
jne 0x1006e549
push 0x3320
push 2
jmp 0x1006ebbe
push esi
call fcn.10073be5
test al, 0x10
pop ecx
mov dword [ebp - 0x58], eax
je 0x1006e563
push 0x3328
push 0x1d
jmp 0x1006ebbe
push edi
call fcn.10073be5
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 4], eax
je 0x1006e582
test al, 0x10
je 0x1006e582
push 0x3332
push 0x1e
jmp 0x1006ebbe
or dword [ebp + 8], 0xffffffff
push ebx
push 0x80
push 3
push ebx
push 5
push connect
push esi
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ebx
call fcn.1006c0f5
add esp, 0x1c
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x1006eae9
xor eax, eax
lea edi, [ebp - 0x48]
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x44], ebx
stosd dword es:[edi], eax
lea edi, [ebp - 0x40]
mov dword [ebp - 0x54], ebx
stosd dword es:[edi], eax
lea edi, [ebp - 0x50]
stosd dword es:[edi], eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
call esi
mov ecx, 0xf7
xor eax, eax
lea edi, [ebp - 0x803]
mov byte [ebp - 0x804], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x804]
push 0x3e0
push eax
push dword [ebp - 0x10]
call fcn.1006bccb
add esp, 0xc
test eax, eax
je 0x1006eafc
lea eax, [ebp - 0x804]
push eax
call fcn.1006bd8c
cmp eax, ebx
pop ecx
mov dword [ebp - 8], eax
je 0x1006eb05
push 0xf
xor eax, eax
pop ecx
lea edi, [ebp - 0x9b]
mov byte [ebp - 0x9c], bl
mov byte [ebp - 0x424], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xe1
xor eax, eax
lea edi, [ebp - 0x423]
cmp dword [ebp - 8], 3
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x2c], ebx
stosb byte es:[edi], al
jne 0x1006e6e4
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x804]
push eax
call fcn.1006b7ad
pop ecx
test eax, eax
pop ecx
je 0x1006eb0c
lea eax, [ebp - 0x424]
push eax
call fcn.10071139
test eax, eax
pop ecx
je 0x1006eb15
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x3c], ebx
push eax
lea eax, [ebp - 0x9c]
push 0x40
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.10071783
add esp, 0x14
test eax, eax
je 0x1006eb1e
push dword [ebp - 0x3c]
call fcn.1005fb73
cmp eax, ebx
pop ecx
mov dword [ebp - 0x24], eax
je 0x1006eb27
jmp 0x1006e741
cmp dword [ebp - 8], 1
jne 0x1006e6ff
push 1
call fcn.1005fb73
cmp eax, ebx
pop ecx
mov dword [ebp - 0x24], eax
je 0x1006eb2e
jmp 0x1006e741
cmp dword [ebp - 8], 2
jne 0x1006eb67
push 2
call fcn.1005fb73
cmp eax, ebx
pop ecx
mov dword [ebp - 0x24], eax
je 0x1006eb35
mov edi, str.ocularsd
push edi
call fcn.1007e450
push eax
lea eax, [ebp - 0x9c]
push edi
push eax
call fcn.1007dea0
push edi
call fcn.1007e450
add esp, 0x14
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 4], 0xffffffff
je 0x1006e75c
test byte [ebp - 4], 1
je 0x1006e75c
mov eax, dword [ebp - 4]
and al, 0xfe
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push 0x80
push 4
push ebx
push 1
push 0xc0000000
push dword [ebp + 0xc]
call fcn.1006c0f5
mov edi, eax
add esp, 0x1c
cmp edi, 0xffffffff
mov dword [ebp + 8], edi
je 0x1006eb3e
xor eax, eax
cmp dword [ebp - 4], 0xffffffff
sete al
cmp dword [ebp - 8], 3
mov dword [ebp - 0x38], eax
jne 0x1006e961
push dword [ebp - 0x408]
push dword [ebp - 0x40c]
push edi
call fcn.100615fb
add esp, 0xc
test eax, eax
je 0x1006eb47
push ebx
push ebx
push dword [ebp - 0x3ec]
mov dword [ebp - 0x38], 1
push dword [ebp - 0x10]
call esi
push ebx
push ebx
push ebx
push edi
call esi
cmp dword [ebp - 0x3e8], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x1006e7ef
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], ebx
jmp 0x1006e947
mov esi, dword [ebp - 0x3e4]
cmp dword [ebp - 0x3e8], 1
mov dword [ebp - 0x28], esi
jne 0x1006e80a
mov esi, dword [ebp - 0x3e0]
mov dword [ebp - 0x28], esi
push esi
call fcn.1007e238
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
je 0x1006eb4e
mov ecx, dword [ebp - 0x24]
push esi
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
mov dword [ebp - 0x20], eax
call fcn.1007e238
cmp eax, ebx
pop ecx
mov dword [ebp - 0x30], eax
je 0x1006eb55
mov dword [ebp - 0x14], ebx
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x3e8]
mov esi, dword [ebp - 0x3e4]
jne 0x1006e85e
mov esi, dword [ebp - 0x3e0]
mov dword [ebp - 0xc], 1
push dword [ebp - 0x28]
push ebx
push dword [ebp - 4]
call fcn.1007e1e0
push dword [ebp - 0x20]
push ebx
push dword [ebp - 0x30]
call fcn.1007e1e0
add esp, 0x18
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], ebx
push ebx
push eax
push esi
push dword [ebp - 4]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1006e8fe
mov eax, dword [ebp - 4]
add esi, 0xfffffffc
push dword [eax]
lea edi, [eax + 4]
push esi
push edi
call fcn.10074c8c
add esp, 0xc
test eax, eax
je 0x1006e907
lea edx, [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
push edx
lea edx, [ebp - 0x9c]
push dword [ebp - 0x20]
mov eax, dword [ecx]
mov dword [ebp - 0x18], ebx
push dword [ebp - 0x30]
push esi
push edi
push dword [ebp - 0x2c]
push edx
call dword [eax + 0x14]
test eax, eax
je 0x1006e910
lea eax, [ebp - 0x1c]
push ebx
push eax
mov dword [ebp - 0x1c], ebx
push dword [ebp - 0x18]
push dword [ebp - 0x30]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1006e919
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x18]
jb 0x1006e920
cmp dword [ebp - 0xc], ebx
je 0x1006e83d
jmp 0x1006e935
push 0x3406
push 0xd
jmp 0x1006e927
push 0x340e
push 0x1c
jmp 0x1006e927
push 0x3417
push 0x12
jmp 0x1006e927
push 0x341f
jmp 0x1006e925
push 0x3426
push 0xe
call fcn.100680dd
pop ecx
mov dword [ebp - 8], 1
pop ecx
push dword [ebp - 4]
call fcn.1007de95
push dword [ebp - 0x30]
call fcn.1007de95
pop ecx
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp dword [ebp - 0xc], ebx
je 0x1006eb75
cmp dword [ebp - 8], ebx
jmp 0x1006eab8
cmp dword [ebp - 8], 1
je 0x1006e971
cmp dword [ebp - 8], 2
jne 0x1006eb75
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [ebp - 0x1c]
push eax
push dword [ebp + 8]
call fcn.100615fb
add esp, 0xc
test eax, eax
je 0x1006eb5e
push ebx
push ebx
push 0x100
mov dword [ebp - 0x38], 1
push dword [ebp - 0x10]
call esi
push ebx
push ebx
push ebx
push dword [ebp + 8]
call esi
mov edi, 0x10000
push edi
call fcn.1007e238
mov esi, eax
pop ecx
cmp esi, ebx
je 0x1006eb75
push edi
call fcn.1007e238
cmp eax, ebx
pop ecx
mov dword [ebp - 0xc], eax
je 0x1006eb75
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
push edi
push ebx
push esi
call fcn.1007e1e0
push edi
push ebx
push dword [ebp - 0xc]
call fcn.1007e1e0
add esp, 0x18
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push ebx
push eax
push edi
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1006ea5c
cmp dword [ebp - 0x18], ebx
je 0x1006ea65
lea edx, [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
push edx
push edi
push dword [ebp - 0xc]
mov eax, dword [ecx]
lea edx, [ebp - 0x9c]
mov dword [ebp - 0x14], ebx
push dword [ebp - 0x18]
push esi
push dword [ebp - 0x2c]
push edx
call dword [eax + 0x14]
test eax, eax
je 0x1006ea6e
lea eax, [ebp - 0x20]
push ebx
push eax
mov dword [ebp - 0x20], ebx
push dword [ebp - 0x14]
push dword [ebp - 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1006ea77
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x14]
jb 0x1006ea7e
jmp 0x1006e9e1
push 0x346a
push 0xd
jmp 0x1006ea85
mov dword [ebp - 0x28], 1
jmp 0x1006ea93
push 0x3479
push 0x12
jmp 0x1006ea85
push 0x3481
jmp 0x1006ea83
push 0x3488
push 0xe
call fcn.100680dd
pop ecx
mov dword [ebp - 4], 1
pop ecx
push esi
call fcn.1007de95
push dword [ebp - 0xc]
call fcn.1007de95
pop ecx
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp dword [ebp - 0x28], ebx
je 0x1006eb75
cmp dword [ebp - 4], ebx
jne 0x1006eb75
test byte [ebp + 0x10], 1
mov dword [ebp - 0x34], 1
je 0x1006eb75
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
jmp 0x1006eb75
push 0x334a
push 3
call fcn.100680dd
pop ecx
pop ecx
jmp 0x1006ebb2
push 0x335a
push 0xf
jmp 0x1006eb6e
push 0x3361
jmp 0x1006eb6c
push 0x3370
push 0x14
jmp 0x1006eb6e
push 0x3379
push 0x1f
jmp 0x1006eb6e
push 0x3382
push 0xb
jmp 0x1006eb6e
push 0x338b
jmp 0x1006eb3a
push 0x3396
jmp 0x1006eb3a
push 0x33a1
push 0xc
jmp 0x1006eb6e
push 0x33be
push 4
jmp 0x1006eb6e
push 0x33ca
jmp 0x1006eb63
push 0x33e5
jmp 0x1006eb5a
push 0x33ed
push 0x21
jmp 0x1006eb6e
push 0x344c
push 0x25
jmp 0x1006eb6e
push 0x33ab
push 0x22
call fcn.100680dd
pop ecx
pop ecx
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
cmp dword [ebp + 8], 0xffffffff
je 0x1006eb8b
push dword [ebp + 8]
call esi
cmp dword [ebp - 0x34], ebx
je 0x1006eba4
test byte [ebp + 0x10], 2
je 0x1006ebb2
push dword [ebp - 0x58]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x1006ebb2
cmp dword [ebp - 0x38], ebx
je 0x1006ebb2
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x34]
jmp 0x1006ebc7
push 0x331a
push 1
call fcn.100680dd
pop ecx
xor eax, eax
pop ecx
pop edi
pop esi
pop ebx
leave
ret