Function at 0x10001ef0
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003226b
mov eax, dword fs:[0]
push eax
mov eax, 0x102c
call fcn.10031f60
mov eax, dword [0x1004200c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x1028], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x1024], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x102c], ecx
mov dword [ebp - 0x1030], eax
cmp ecx, dword [esi + 8]
jg 0x10002019
lea ebx, [esi + 0x3c]
push ebx
mov dword [ebp - 0x1038], ebx
call fcn.1000513c
add esp, 4
test eax, eax
je 0x10001f73
push eax
call fcn.10004c28
add esp, 4
mov byte [ebp - 0x1034], 1
mov eax, dword [ebp - 0x1028]
mov ecx, 0x1003bbd4
test eax, eax
mov dword [ebp - 4], 0
cmovne ecx, eax
lea eax, [ebp - 0x1020]
push eax
mov dword [ebp - 0x1028], ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
cmp byte [esi + 0x45c], 0
lea ebx, [esi + 0x3c]
movzx eax, word [ebp - 0x1020]
movzx ecx, word [ebp - 0x101e]
movzx edx, word [ebp - 0x101a]
je 0x10001ff6
cmp dword [esi + 0x6c], 0xffffffff
je 0x10001fec
cmp dword [esi + 0x458], 0
jne 0x10001ff6
cmp edx, dword [esi + 0x84c]
jne 0x10001fec
cmp ecx, dword [esi + 0x848]
jne 0x10001fec
cmp eax, dword [esi + 0x844]
je 0x10001ff6
push edx
push ecx
push eax
mov ecx, esi
call fcn.10002300
cmp dword [esi + 0x6c], 0xffffffff
jne 0x10002039
mov dword [ebp - 4], 1
push ebx
call fcn.10005161
add esp, 4
test eax, eax
je 0x10002019
push eax
call fcn.10004c28
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10005a58
mov esp, ebp
pop ebp
ret 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov cl, byte [edi]
mov ebx, eax
mov edx, edi
test cl, cl
je 0x10002065
nop dword [eax]
cmp cl, 0x2f
je 0x1000205a
cmp cl, 0x5c
jne 0x1000205d
lea edi, [edx + 1]
mov cl, byte [edx + 1]
inc edx
test cl, cl
jne 0x10002050
push dword [ebp + 0x10]
mov eax, dword [ebp - 0x102c]
push edi
push dword [ebp - 0x1028]
push dword [eax*4 + 0x1003bce4]
movzx eax, word [ebp - 0x1012]
push eax
movzx eax, word [ebp - 0x1014]
push eax
movzx eax, word [ebp - 0x1016]
push eax
movzx eax, word [ebp - 0x1018]
push eax
movzx eax, word [ebp - 0x101a]
push eax
movzx eax, word [ebp - 0x101e]
push eax
movzx eax, word [ebp - 0x1020]
push eax
push str.__04d__02d__02dT_02d:_02d:_02d:_03d__s__s__s:_d_
lea eax, [ebp - 0x1010]
push 0xffd
push eax
call fcn.10001c40
add esp, 0x38
mov edi, eax
test ebx, ebx
jle 0x100020f4
push ebx
mov ecx, 0xffd
sub ecx, edi
push str.tid:_d_
push ecx
lea ecx, [ebp - 0x1010]
add ecx, edi
push ecx
call fcn.10001c40
add esp, 0x10
add edi, eax
push dword [ebp - 0x1030]
mov ebx, 0xffd
lea eax, [ebp - 0x1010]
push ecx
push dword [ebp - 0x1024]
add eax, edi
sub ebx, edi
mov edx, ebx
mov ecx, eax
call fcn.10001c00
add esp, 0xc
mov dword [ebp - 0x1024], eax
cmp byte [esi], 0
je 0x10002154
lea eax, [ebp - 0x1010]
mov ecx, esi
add eax, edi
push eax
call fcn.10002d50
test al, al
jne 0x1000214e
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x1038]
push eax
jmp 0x10002004
mov eax, dword [ebp - 0x1024]
test eax, eax
js 0x10002160
cmp eax, ebx
jg 0x10002160
add edi, eax
jmp 0x10002162
mov edi, ebx
cmp edi, 0x1000
jae 0x100021f9
mov eax, dword [esi + 0x6c]
mov byte [ebp + edi - 0x1010], 0
cmp eax, 0xffffffff
je 0x100021e9
cmp dword [esi + 0x458], 0
je 0x100021cf
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [esi + 0x458]
jbe 0x100021cf
movzx eax, word [ebp - 0x101a]
mov ecx, esi
movzx ebx, word [ebp - 0x1020]
push eax
movzx eax, word [ebp - 0x101e]
push eax
push ebx
call fcn.10002590
movzx eax, word [ebp - 0x101a]
mov ecx, esi
push eax
movzx eax, word [ebp - 0x101e]
push eax
push ebx
call fcn.10002300
push 0
lea eax, [ebp - 0x1024]
push eax
push edi
lea eax, [ebp - 0x1010]
push eax
push dword [esi + 0x6c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esi + 0x3c]
mov dword [ebp - 4], 3
push eax
jmp 0x10002004
call fcn.10005bc4
int3