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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x84
test eax, eax
push ebx
push esi
push edi
je 0x53dffa
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x20]
mov ebx, dword [esp + 0xb8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov ecx, ebx
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x9c]
mov dword [esp + 0x14], eax
mov edx, ebx
mov dword [esp + 0x18], eax
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [esp + 0x1c], al
mov eax, ebx
shr ecx, 8
mov byte [esp + 0x29], cl
mov ecx, ebx
shr eax, 0x10
mov byte [esp + 0x2a], al
mov al, byte [esp + 0xc0]
shr ecx, 0x18
mov byte [esp + 0x2b], cl
mov cl, byte [esp + 0xbc]
mov byte [esp + 0x2d], al
mov eax, dword [esp + 0xb0]
mov byte [esp + 0x2f], cl
mov ecx, eax
shr ecx, 0x18
mov byte [esp + 0x31], cl
mov ecx, eax
shr ecx, 0x10
mov byte [esp + 0x32], cl
mov ecx, eax
shr ecx, 8
shr edx, 0xb
mov byte [esp + 0x33], cl
mov byte [esp + 0x34], al
lea ecx, [esp + 0xc]
mov eax, edx
mov byte [esp + 0x37], dl
push 0
push ecx
lea edx, [esp + 0x28]
push 0x1f
push edx
shr eax, 8
push esi
mov byte [esp + 0x34], 0x55
mov byte [esp + 0x35], 0x53
mov byte [esp + 0x36], 0x42
mov byte [esp + 0x37], 0x43
mov byte [esp + 0x3a], 1
mov byte [esp + 0x3b], 0x2c
mov byte [esp + 0x3c], bl
mov byte [esp + 0x42], 0xa
mov byte [esp + 0x4a], al
call edi
test eax, eax
jne 0x53df9a
pop edi
pop esi
pop ebx
add esp, 0x84
ret
mov ecx, dword [esp + 0xb4]
lea eax, [esp + 0xc]
push 0
push eax
push ebx
push ecx
push esi
call edi
test eax, eax
jne 0x53dfbb
pop edi
pop esi
pop ebx
add esp, 0x84
ret
mov ecx, dword [esp + 0x98]
lea edx, [esp + 0xc]
push 0
push edx
lea eax, [esp + 0x18]
push 0xd
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x53dfe5
pop edi
pop esi
pop ebx
add esp, 0x84
ret
mov cl, byte [esp + 0x1c]
xor eax, eax
test cl, cl
pop edi
pop esi
sete al
pop ebx
add esp, 0x84
ret
mov dl, byte [esp + 0xc0]
mov ecx, 0x14
xor eax, eax
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
mov byte [esp + 0x45], dl
mov dl, byte [esp + 0xbc]
mov byte [esp + 0x43], al
mov byte [esp + 0x47], al
mov byte [esp + 0x48], al
mov eax, dword [esp + 0xb4]
mov byte [esp + 0x5c], dl
mov edx, dword [esp + 0xb0]
mov ecx, dword [esp + 0xb8]
mov dword [esp + 0x54], eax
mov eax, edx
mov esi, dword [esp + 0xac]
shr eax, 0x10
xor ebx, ebx
mov byte [esp + 0x5f], al
mov bl, ah
xor eax, eax
mov al, dh
mov byte [esp + 0x61], dl
mov edx, ecx
mov dword [esp + 0x4c], ecx
shr edx, 0x13
shr ecx, 0xb
cmp esi, 0xffffffff
mov word [esp + 0x40], 0x2c
mov byte [esp + 0x44], 1
mov byte [esp + 0x46], 0x10
mov dword [esp + 0x50], 0x12c
mov dword [esp + 0x58], 0x30
mov byte [esp + 0x5e], bl
mov byte [esp + 0x60], al
mov byte [esp + 0x63], dl
mov byte [esp + 0x64], cl
mov dword [esp + 0xc], 0
je 0x53e0de
lea eax, [esp + 0xc]
push 0
push eax
lea ecx, [esp + 0x48]
push 0x50
push ecx
lea edx, [esp + 0x50]
push 0x50
push edx
push 0x4d014
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x84
ret
mov edi, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x84
ret