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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xfb8
mov eax, dword [0x10285008]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x10
mov dword [ebp - 0xfa0], ecx
lea edi, [ebp - 0xf9c]
pop ecx
mov esi, eax
mov dword [ebp - 0xfb8], eax
xor ebx, ebx
mov dword [ebp - 0xfa4], 6
rep movsd dword es:[edi], dword [esi]
push 0x102b2abc
mov dword [ebp - 0xfa8], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0xf9c]
sub eax, 0x3430
je 0x100f50f8
dec eax
je 0x100f501c
dec eax
je 0x100f4f3d
dec eax
je 0x100f4ef2
push dword [ebp - 0xf9c]
push 0x10062ce8
call fcn.100d3b4e
pop ecx
pop ecx
mov dword [ebp - 0xfa4], 4
mov dword [ebp - 0xf98], 0xc000000d
mov edi, dword [ebp - 0xfa0]
jmp 0x100f515f
mov esi, dword [ebp - 0xf94]
push 0x14
push esi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x100f4f0e
cmp dword [esi + 0xc], 0x6c46644b
je 0x100f4f10
mov esi, ebx
test esi, esi
je 0x100f4edd
push 0x100597b0
call fcn.100d3a67
pop ecx
cmp dword [esi + 0x10], ebx
jne 0x100f4f2f
push 0x10062c58
call fcn.100d3aca
pop ecx
push esi
call fcn.100f6727
mov dword [ebp - 0xf98], ebx
jmp 0x100f4ee7
mov esi, dword [ebp - 0xf94]
push 0x14
push esi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x100f4f59
cmp dword [esi + 0xc], 0x6c46644b
je 0x100f4f5b
mov esi, ebx
test esi, esi
je 0x100f4edd
mov ecx, dword [0x1029b544]
lea eax, [ecx - 0x40]
cmp dword [ebp - 0xf84], eax
ja 0x100f4edd
lea eax, [ecx - 0x50]
mov dword [esi + 0x10], 1
cmp dword [ebp - 0xf84], eax
jbe 0x100f4f90
mov dword [ebp - 0xf84], eax
mov eax, dword [ebp - 0xf88]
mov ecx, dword [ebp - 0xf8c]
mov dword [ebp - 0xfb0], eax
lea eax, [ebp - 0xfb0]
push ebx
push eax
push ecx
mov dword [ebp - 0xfb4], ecx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x100f4fd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x100f4fd8
mov dword [ebp - 0xf98], 0xc0000011
jmp 0x100f4ee7
push ebx
lea eax, [ebp - 0xf84]
push eax
push dword [ebp - 0xf84]
mov eax, dword [ebp - 0xfb8]
add eax, 0x40
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100f500c
mov dword [ebp - 0xf98], 0xc0000001
jmp 0x100f4ee7
push 0x10062c50
call fcn.100d3a67
pop ecx
jmp 0x100f4f35
mov esi, dword [ebp - 0xf94]
push 0x14
push esi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x100f5038
cmp dword [esi + 0xc], 0x6c46644b
je 0x100f503a
mov esi, ebx
test esi, esi
je 0x100f4edd
mov ecx, dword [0x1029b544]
lea eax, [ecx - 0x40]
cmp dword [ebp - 0xf84], eax
ja 0x100f4edd
lea eax, [ecx - 0x50]
mov dword [esi + 0x10], 1
cmp dword [ebp - 0xf84], eax
jbe 0x100f506f
mov dword [ebp - 0xf84], eax
mov eax, dword [ebp - 0xf88]
mov ecx, dword [ebp - 0xf8c]
mov dword [ebp - 0xfb0], eax
lea eax, [ebp - 0xfb0]
push ebx
push eax
push ecx
mov dword [ebp - 0xfb4], ecx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x100f50ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100f4fc9
push ebx
lea eax, [ebp - 0xf84]
push eax
push dword [ebp - 0xf84]
lea eax, [ebp - 0xf5c]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100f4ffd
push 0x10062c50
call fcn.100d3a67
movzx eax, word [ebp - 0xf84]
mov edi, dword [ebp - 0xfa0]
mov dword [ebp - 0xf98], ebx
lea ebx, [ebp - 0xf5c]
pop ecx
jmp 0x100f5161
mov esi, dword [ebp - 0xfb8]
lea eax, [ebp - 0xf74]
mov edi, dword [ebp - 0xfa0]
add esi, 0x40
push eax
lea eax, [ebp - 0xfa8]
push eax
push ecx
push dword [ebp - 0xf88]
mov ecx, edi
push dword [ebp - 0xf8c]
push dword [ebp - 0xf90]
push dword [ebp - 0xf94]
push esi
call fcn.100f656c
mov ecx, eax
mov dword [ebp - 0xf78], ebx
mov eax, dword [ebp - 0xfa8]
push ecx
push esi
push 0x10062c00
mov dword [ebp - 0xf98], ecx
mov dword [ebp - 0xf7c], eax
call fcn.100d3b4e
add esp, 0xc
mov eax, ebx
mov esi, dword [edi]
push eax
push ebx
push 0xb
mov ecx, dword [esi + 0xc]
lea eax, [ebp - 0xf9c]
push 0x40
push eax
call dword [0x102dc578]
mov ecx, edi
call dword [esi + 0xc]
call fcn.100d2d40
push 0x102b2abc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xfa4]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10236010
mov esp, ebp
pop ebp
ret 4