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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x4bf2a0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4bf5ad
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x370]
call fcn.0049f518
mov edi, eax
test edi, edi
jl 0x4bf546
inc edi
mov dword [ebp - 4], 0
xor edx, edx
mov eax, dword [ebx + 0x36c]
call fcn.00462360
mov byte [ebx + 0x5c4], 0xaa
push 0
lea eax, [ebx + 0x3974]
push eax
push 4
lea eax, [ebx + 0x5c4]
push eax
mov eax, dword [ebx + 0x3e0]
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebx + 0x3978]
push eax
push 4
lea eax, [ebx + 0x560]
push eax
mov eax, dword [ebx + 0x3e0]
push eax
call sub.kernel32.dll_ReadFile_1
movzx esi, byte [ebx + 0x560]
lea edx, [ebp - 0xc]
mov eax, dword [ebx + 0x36c]
call fcn.00462330
push dword [ebp - 0xc]
push 0x4bf5c4
lea edx, [ebp - 0x10]
mov eax, esi
and eax, 0xf
call fcn.00409200
push dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00404f18
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0x36c]
call fcn.00462360
mov byte [ebx + 0x5c4], 0x89
push 0
lea eax, [ebx + 0x3974]
push eax
push 4
lea eax, [ebx + 0x5c4]
push eax
mov eax, dword [ebx + 0x3e0]
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebx + 0x3978]
push eax
push 4
lea eax, [ebx + 0x560]
push eax
mov eax, dword [ebx + 0x3e0]
push eax
call sub.kernel32.dll_ReadFile_1
movzx esi, byte [ebx + 0x560]
lea edx, [ebp - 0x18]
mov eax, dword [ebx + 0x36c]
call fcn.00462330
push dword [ebp - 0x18]
push 0x4bf5c4
lea edx, [ebp - 0x1c]
mov eax, esi
and eax, 0xf
call fcn.00409200
push dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404f18
mov edx, dword [ebp - 0x14]
mov eax, dword [ebx + 0x36c]
call fcn.00462360
mov byte [ebx + 0x5c4], 0x80
push 0
lea eax, [ebx + 0x3974]
push eax
push 4
lea eax, [ebx + 0x5c4]
push eax
mov eax, dword [ebx + 0x3e0]
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebx + 0x3978]
push eax
push 4
lea eax, [ebx + 0x560]
push eax
mov eax, dword [ebx + 0x3e0]
push eax
call sub.kernel32.dll_ReadFile_1
movzx esi, byte [ebx + 0x560]
lea edx, [ebp - 0x24]
mov eax, dword [ebx + 0x36c]
call fcn.00462330
push dword [ebp - 0x24]
push 0x4bf5c4
lea edx, [ebp - 0x28]
mov eax, esi
and eax, 0xf
call fcn.00409200
push dword [ebp - 0x28]
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00404f18
mov edx, dword [ebp - 0x20]
mov eax, dword [ebx + 0x36c]
call fcn.00462360
push 0x14
call sub.kernel32.dll_Sleep_1
mov byte [ebx + 0x5c4], 0x55
push 0
lea eax, [ebx + 0x3974]
push eax
push 4
lea eax, [ebx + 0x5c4]
push eax
mov eax, dword [ebx + 0x3e0]
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebx + 0x3978]
push eax
push 4
lea eax, [ebx + 0x560]
push eax
mov eax, dword [ebx + 0x3e0]
push eax
call sub.kernel32.dll_ReadFile_1
movzx esi, byte [ebx + 0x560]
lea edx, [ebp - 0x30]
mov eax, dword [ebx + 0x36c]
call fcn.00462330
push dword [ebp - 0x30]
push 0x4bf5c4
lea edx, [ebp - 0x34]
mov eax, esi
and eax, 0xf
call fcn.00409200
push dword [ebp - 0x34]
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00404f18
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebx + 0x36c]
call fcn.00462360
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.00409200
mov edx, dword [ebp - 0x38]
mov eax, dword [ebx + 0x364]
call fcn.00462360
mov eax, dword [0x4d41b4]
mov eax, dword [eax]
call fcn.00482134
inc dword [ebp - 4]
dec edi
jne 0x4bf2d7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bf5b4
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.00404bbc
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.00404bbc
lea eax, [ebp - 0x28]
call fcn.00404b98
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00404bbc
lea eax, [ebp - 0x1c]
call fcn.00404b98
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00404bbc
lea eax, [ebp - 0x10]
call fcn.00404b98
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404bbc
ret