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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b7c9b
mov eax, dword fs:[0]
push eax
sub esp, 0x4c0
mov eax, dword [0x100f51d4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
lea edi, [ebx + 0x270]
xor esi, esi
mov dword [ebp - 0x4b0], eax
mov dword [ebp - 0x4b4], esi
test edi, edi
je 0x1001f42a
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, edi
mov dword [ebp - 0x4b4], esi
mov dword [ebp - 4], 0
cmp dword [ebx + 0x26c], 0xffffffff
je 0x1001f444
mov edi, 0x80070057
jmp 0x1001f700
xor eax, eax
push 0x20a
push eax
mov dword [ebp - 0x4ac], eax
mov dword [ebp - 0x4a8], eax
mov dword [ebp - 0x4a4], eax
mov dword [ebp - 0x4a0], eax
lea eax, [ebp - 0x294]
push eax
call fcn.10097030
add esp, 0xc
lea eax, [ebp - 0x4ac]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x42
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.10097030
add esp, 0xc
mov edx, 0x21
push SysReAllocString
push dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x84]
call fcn.10021880
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1001f521
xor ecx, ecx
push SysReAllocString
push eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
lea edx, [ecx + 0x11]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov word [ebp - 0x18], cx
push ecx
lea ecx, [ebp - 0x38]
call fcn.10021880
movzx eax, word [ebp - 0x4a6]
push eax
movzx eax, word [ebp - 0x4aa]
push eax
movzx eax, word [ebp - 0x4ac]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x84]
push eax
push str._s._s._4.4d__2.2d__2.2d.log
lea eax, [ebp - 0x294]
push 0x104
push eax
call fcn.10021620
add esp, 0x20
jmp 0x1001f559
movzx eax, word [ebp - 0x4a6]
push eax
movzx eax, word [ebp - 0x4aa]
push eax
movzx eax, word [ebp - 0x4ac]
push eax
lea eax, [ebp - 0x84]
push eax
push str._s._4.4d__2.2d__2.2d.log
lea eax, [ebp - 0x294]
push 0x104
push eax
call fcn.10021620
add esp, 0x1c
mov edi, eax
test edi, edi
js 0x1001f700
push 0x208
lea eax, [ebp - 0x49c]
push 0
push eax
call fcn.10097030
add esp, 0xc
lea eax, [ebp - 0x294]
push eax
push dword [ebp - 0x4b0]
lea eax, [ebp - 0x49c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x1001f60a
push 0
lea eax, [ebp - 0x4c4]
mov dword [ebp - 0x4c4], 0
push eax
push 1
push str.D:_A_OICI_GAFA___BU__A_OICI_GAFA___LS__A_OICI_GAFA___SY_
mov dword [ebp - 0x4c8], 0xc
mov dword [ebp - 0x4c0], 0
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
push 0
neg eax
lea ecx, [ebp - 0x4c8]
push 0
push 4
sbb eax, eax
and eax, ecx
push eax
push 1
push 0x40000000
lea eax, [ebp - 0x49c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov eax, dword [ebp - 0x4c4]
test eax, eax
je 0x1001f605
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp edi, 0xffffffff
jne 0x1001f628
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x1001f700
movzx edi, di
or edi, 0x80070000
jmp 0x1001f700
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x1001f661
push eax
lea eax, [ebp - 0x4b8]
mov dword [ebp - 0x4bc], 0xfeff
push eax
push 2
lea eax, [ebp - 0x4bc]
mov dword [ebp - 0x4b8], 2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x4ac]
mov edx, 0x104
mov dword [ebx + 0x288], eax
mov eax, dword [ebp - 0x4a8]
push SysReAllocString
push dword [ebp - 0x4b0]
mov dword [ebx + 0x28c], eax
mov eax, dword [ebp - 0x4a4]
mov dword [ebx + 0x290], eax
mov eax, dword [ebp - 0x4a0]
push ecx
mov ecx, ebx
mov dword [ebx + 0x26c], edi
mov dword [ebx + 0x294], eax
call fcn.10021880
push SysReAllocString
push dword [ebp + 0xc]
mov edx, 0x21
push ecx
lea ecx, [ebx + 0x208]
call fcn.10021880
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1001f6f5
push SysReAllocString
push eax
push ecx
lea ecx, [ebx + 0x24a]
mov edx, 0x11
call fcn.10021880
jmp 0x1001f6fe
xor eax, eax
mov word [ebx + 0x24a], ax
xor edi, edi
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x1001f712
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10071699
mov esp, ebp
pop ebp
ret 0xc