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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x184
test eax, eax
push ebx
push esi
push edi
je 0x53e6ad
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x10]
mov ebx, dword [esp + 0x1b4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov edx, ebx
mov dword [esp + 0x30], eax
mov ecx, ebx
mov dword [esp + 0x34], eax
push 0
mov dword [esp + 0x3c], eax
mov byte [esp + 0x14], 0x55
mov byte [esp + 0x40], al
mov byte [esp + 0x1a], al
shr edx, 0x10
mov eax, ebx
mov byte [esp + 0x1e], dl
mov edx, dword [esp + 0x1bc]
mov byte [esp + 0x15], 0x53
shr ecx, 8
shr eax, 0x18
mov byte [esp + 0x1d], cl
mov cl, byte [esp + 0x1c0]
mov byte [esp + 0x1f], al
mov eax, dword [edx]
mov byte [esp + 0x21], cl
mov dword [esp + 0x23], eax
mov ecx, dword [edx + 4]
mov byte [esp + 0x16], 0x42
mov dword [esp + 0x27], ecx
mov byte [esp + 0x17], 0x43
mov eax, dword [edx + 8]
mov byte [esp + 0x1b], 5
mov dword [esp + 0x2b], eax
lea eax, [esp + 0x14]
mov ecx, dword [edx + 0xc]
lea edx, [esp + 0x10]
mov dword [esp + 0x2f], ecx
mov ecx, dword [esp + 0x1a0]
push edx
push 0x1f
push eax
push ecx
mov byte [esp + 0x2c], bl
mov byte [esp + 0x30], 0x80
mov byte [esp + 0x32], 0x10
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x53e64b
pop edi
pop esi
pop ebx
add esp, 0x184
ret
mov eax, dword [esp + 0x1b0]
mov esi, dword [esp + 0x198]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea edx, [esp + 0xc]
push 0
push edx
push ebx
push eax
push esi
call edi
test eax, eax
jne 0x53e679
pop edi
pop esi
pop ebx
add esp, 0x184
ret
lea ecx, [esp + 0xc]
push 0
push ecx
lea edx, [esp + 0x38]
push 0xd
push edx
push esi
call edi
test eax, eax
jne 0x53e698
pop edi
pop esi
pop ebx
add esp, 0x184
ret
mov cl, byte [esp + 0x3c]
xor eax, eax
test cl, cl
pop edi
pop esi
sete al
pop ebx
add esp, 0x184
ret
mov edx, dword [esp + 0x1b4]
mov ecx, 0x14
xor eax, eax
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
mov cl, byte [esp + 0x1bc]
mov byte [esp + 0x43], al
mov al, 1
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x1b8]
mov byte [esp + 0x44], al
mov byte [esp + 0x48], al
mov eax, dword [esp + 0x1c0]
mov byte [esp + 0x45], cl
mov ecx, dword [esp + 0x1b0]
mov dword [esp + 0x50], eax
mov eax, dword [edx]
mov ebx, dword [esp + 0x1ac]
mov dword [esp + 0x54], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
xor esi, esi
mov eax, dword [edx + 8]
xor edi, edi
cmp ebx, 0xffffffff
mov word [esp + 0x40], 0x2c
mov ecx, dword [edx + 0xc]
mov byte [esp + 0x46], 0x10
mov byte [esp + 0x47], 0
mov dword [esp + 0x58], 0x30
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
mov dword [esp + 0xc], 0
je 0x53e7a6
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test esi, esi
jne 0x53e79e
lea edx, [esp + 0x10]
push esi
push edx
lea eax, [esp + 0x4c]
push 0x50
push eax
lea ecx, [esp + 0x54]
push 0x50
push ecx
push 0x4d014
push ebx
call ebp
mov esi, eax
test esi, esi
jne 0x53e798
push edi
push esi
lea edx, [esp + 0x9c]
push str.SMISCSIRead:_DeviceIoControl_success___d__retry_cnt___d
push edx
call fcn.0054c45b
lea eax, [esp + 0xa4]
push eax
call fcn.00536ebf
add esp, 0x14
inc edi
cmp edi, 8
jl 0x53e74e
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x184
ret