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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf0
cmp dword [ebp + 8], 0
je 0x4e77c7
mov eax, dword [ebp + 0x28]
shr eax, 9
mov dword [ebp - 0x30], eax
mov dword [ebp - 0xc], 0x1f4
push 0x1f
push 0
lea ecx, [ebp - 0x2c]
push ecx
call fcn.0054bf90
add esp, 0xc
push 0xd
push 0
lea edx, [ebp - 0x58]
push edx
call fcn.0054bf90
add esp, 0xc
mov byte [ebp - 0x2c], 0x55
mov byte [ebp - 0x2b], 0x53
mov byte [ebp - 0x2a], 0x42
mov byte [ebp - 0x29], 0x43
mov eax, dword [ebp + 0x28]
and eax, 0xff
mov byte [ebp - 0x24], al
mov ecx, dword [ebp + 0x28]
shr ecx, 8
and ecx, 0xff
mov byte [ebp - 0x23], cl
mov edx, dword [ebp + 0x28]
shr edx, 0x10
and edx, 0xff
mov byte [ebp - 0x22], dl
mov eax, dword [ebp + 0x28]
shr eax, 0x18
and eax, 0xff
mov byte [ebp - 0x21], al
mov byte [ebp - 0x20], 0x80
mov byte [ebp - 0x1e], 0x10
mov dword [ebp - 4], 0
jmp 0x4e7569
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x10
jge 0x4e7580
mov edx, dword [ebp + 0x2c]
add edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov cl, byte [edx]
mov byte [ebp + eax - 0x1d], cl
jmp 0x4e7560
push 0x14
push 0
lea edx, [ebp - 0x6c]
push edx
call fcn.0054bf90
add esp, 0xc
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 8]
push ecx
push 0x1f
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x70], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0x3e5
jne 0x4e761f
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
je 0x4e7618
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4e78c3
mov dword [ebp - 0x70], 1
mov edx, dword [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x70], 0
jne 0x4e7636
xor eax, eax
jmp 0x4e78c3
push 0x14
push 0
lea eax, [ebp - 0x44]
push eax
call fcn.0054bf90
add esp, 0xc
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0x28]
push eax
mov ecx, dword [ebp + 0x24]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x70], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0x3e5
jne 0x4e76d7
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0
je 0x4e76d0
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4e78c3
mov dword [ebp - 0x70], 1
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x70], 0
jne 0x4e76ee
xor eax, eax
jmp 0x4e78c3
push 0x14
push 0
lea edx, [ebp - 0x84]
push edx
call fcn.0054bf90
add esp, 0xc
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 8]
push ecx
push 0xd
lea edx, [ebp - 0x58]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x70], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0x3e5
jne 0x4e7793
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x74]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
je 0x4e778c
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4e78c3
mov dword [ebp - 0x70], 1
mov edx, dword [ebp - 0x74]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x70], 0
jne 0x4e77aa
xor eax, eax
jmp 0x4e78c3
mov eax, dword [ebp - 0x4c]
and eax, 0xff
test eax, eax
je 0x4e77bd
xor eax, eax
jmp 0x4e78c3
mov eax, 1
jmp 0x4e78c3
push 0x50
push 0
lea ecx, [ebp - 0xe4]
push ecx
call fcn.0054bf90
add esp, 0xc
mov word [ebp - 0xe4], 0x2c
mov byte [ebp - 0xe1], 0
mov byte [ebp - 0xe0], 1
mov byte [ebp - 0xdf], 0
mov byte [ebp - 0xde], 0x10
mov byte [ebp - 0xdd], 0
mov byte [ebp - 0xdc], 1
mov edx, dword [ebp + 0x28]
mov dword [ebp - 0xd8], edx
mov dword [ebp - 0xd4], 2
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xcc], 0x30
mov dword [ebp - 4], 0
jmp 0x4e7845
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x10
jge 0x4e785f
mov edx, dword [ebp + 0x2c]
add edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov cl, byte [edx]
mov byte [ebp + eax - 0xc8], cl
jmp 0x4e783c
mov dword [ebp - 0xec], 0x50
mov dword [ebp - 0xe8], 0
cmp dword [ebp + 0x20], 0xffffffff
je 0x4e78bd
push 0
lea edx, [ebp - 0xe8]
push edx
mov eax, dword [ebp - 0xec]
push eax
lea ecx, [ebp - 0xe4]
push ecx
mov edx, dword [ebp - 0xec]
push edx
lea eax, [ebp - 0xe4]
push eax
push 0x4d014
mov ecx, dword [ebp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0xf0], eax
mov edx, dword [ebp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, dword [ebp - 0xf0]
mov esp, ebp
pop ebp
ret