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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x16c], 0
jne 0x4d3e55
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
mov ecx, dword [ebp + 8]
add ecx, 0x20
call fcn.00424f20
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x24], 0
cmp dword [ebp - 4], 0
je 0x4d3e50
cmp dword [ebp - 4], 0xffffffff
je 0x4d3e50
push 2
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x10]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4d3e20
push 0
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x10]
jne 0x4d3e20
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.004d57f0
add esp, 0x10
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0xc], 0
je 0x4d3e20
cmp dword [ebp - 0x20], 0
jne 0x4d3e20
push 0
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x18], 0
push 0
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 1
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 8], 0
je 0x4d3e37
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 8], 0
cmp dword [ebp - 0xc], 0
je 0x4d3e50
mov edx, dword [ebp - 0xc]
push edx
call fcn.0063e41a
add esp, 4
mov dword [ebp - 0xc], 0
jmp 0x4d3f28
mov eax, dword [ebp + 8]
cmp dword [eax + 0x16c], 1
jne 0x4d3f28
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], 0
mov ecx, 1
test ecx, ecx
je 0x4d3f28
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x170]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0x104
call fcn.00424f20
push eax
call fcn.004d57f0
add esp, 0x10
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x14], 0
je 0x4d3f21
cmp dword [ebp - 0x28], 0
jne 0x4d3f21
mov ecx, dword [ebp + 8]
add ecx, 0x104
call fcn.0047d9f0
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x104
call fcn.00424dc0
mov ecx, dword [ebp + 8]
add ecx, 0x104
call fcn.00425220
mov edx, dword [ebp + 8]
mov dword [edx + 0x78], eax
mov ecx, dword [ebp + 8]
add ecx, 0x104
call fcn.00425220
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x170], eax
mov edx, dword [ebp - 0x14]
push edx
call fcn.0063e41a
add esp, 4
mov dword [ebp - 0x14], 0
mov esp, ebp
pop ebp
ret 4