Function at 0x4dec74
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x4dec7c
push ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.0040b4a8
xor eax, eax
push ebp
push 0x4deef2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4f8d38]
cmp byte [eax + 0x90], 0
je 0x4decda
push 0x4def04
push dword [ebp - 4]
push 0x4def4c
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.0040c0f4
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
call fcn.0040c338
mov eax, dword [ebp - 0x14]
mov dl, 1
call fcn.004dde34
push 0
push 0x80
push 1
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x1c]
mov ecx, 0x4def4c
mov edx, dword [ebp - 4]
call fcn.0040c078
mov eax, dword [ebp - 0x1c]
call fcn.0040bff0
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4ded3d
mov eax, dword [0x4f8d38]
cmp byte [eax + 0x90], 0
je 0x4deeb8
mov dl, 1
mov eax, 0x4def80
call fcn.004dde34
xor eax, eax
call fcn.004de034
jmp 0x4deeb8
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetFilePointerEx
test eax, eax
jne 0x4ded75
mov eax, dword [0x4f8d38]
cmp byte [eax + 0x90], 0
je 0x4dedc6
mov dl, 1
mov eax, 0x4defdc
call fcn.004dde34
xor eax, eax
call fcn.004de034
jmp 0x4dedc6
mov eax, dword [0x4f8d38]
mov eax, dword [eax + 0x3c]
mov ebx, eax
test ebx, ebx
je 0x4ded88
sub ebx, 4
mov ebx, dword [ebx]
push 0
lea eax, [ebp - 0x10]
push eax
push ebx
mov eax, dword [0x4f8d38]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_WriteFile
test eax, eax
jne 0x4dedc6
mov eax, dword [0x4f8d38]
cmp byte [eax + 0x90], 0
je 0x4dedc6
mov dl, 1
mov eax, 0x4df034
call fcn.004dde34
xor eax, eax
call fcn.004de034
mov eax, dword [0x4f8d38]
mov eax, dword [eax + 0x3c]
test eax, eax
je 0x4dedd7
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
cmp edx, eax
je 0x4dee95
mov eax, dword [0x4f8d38]
cmp byte [eax + 0x90], 0
je 0x4dee95
xor eax, eax
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x4dee87
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x4df07c
mov eax, dword [ebp - 0x10]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.00422ac4
push dword [ebp - 0x20]
push 0x4df0b4
lea eax, [ebp - 8]
mov edx, 3
call fcn.0040c534
mov eax, dword [0x4f8d38]
mov eax, dword [eax + 0x3c]
mov ebx, eax
test ebx, ebx
je 0x4dee43
sub ebx, 4
mov ebx, dword [ebx]
push dword [ebp - 8]
lea edx, [ebp - 0x28]
mov eax, ebx
call fcn.00422aa8
push dword [ebp - 0x28]
push 0x4df0d0
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.0040c534
mov eax, dword [ebp - 0x24]
mov dl, 1
call fcn.004dde34
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dee8e
lea eax, [ebp - 8]
call fcn.0040b394
pop eax
jmp eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [0x4f8d38]
cmp byte [eax + 0x90], 0
je 0x4deeb8
mov dl, 1
mov eax, 0x4df0ec
call fcn.004dde34
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4deef9
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.0040b3f4
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.0040b464
lea eax, [ebp - 0x14]
call fcn.0040b394
lea eax, [ebp - 4]
call fcn.0040b3dc
pop eax
jmp eax