Function at 0x4dc9a0
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xbc
lea eax, [esp + 0x64]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xd8]
mov eax, dword [eax]
mov dword [esp], eax
call fcn.004e4270
test eax, eax
jne 0x4dc9ee
mov eax, dword [esp + 0xd8]
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_remove
test eax, eax
mov edx, 4
je 0x4dc9ee
add esp, 0xbc
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0xd0]
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 2
mov dword [esp + 8], 3
mov dword [esp + 4], 0
mov eax, dword [eax]
mov dword [esp], eax
call fcn.004dda40
test eax, eax
mov dword [esp + 0x34], eax
je 0x4dcccc
mov eax, dword [esp + 0x34]
xor edx, edx
mov eax, dword [eax + 4]
mov esi, eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xd4]
div esi
cmp edx, 1
sbb eax, 0xffffffff
mov edi, eax
mov eax, esi
imul eax, edi
lea ebp, [eax + eax*2]
mov ebx, eax
test ebp, 3
je 0x4dca69
mov eax, ebp
shr eax, 2
lea ebp, [eax*4 + 4]
mov eax, ebp
mov esi, 2
imul eax, ebx
mov dword [esp], eax
mov dword [esp + 0x44], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov ecx, eax
mov dword [esp + 0x3c], eax
je 0x4dcca5
mov esi, dword [esp + 0x44]
mov dword [esp], ecx
mov dword [esp + 4], 0xff
mov dword [esp + 8], esi
call sub.msvcrt.dll_memset
mov eax, 0x4d42
mov dword [esp + 0x8c], ebx
neg ebx
mov word [esp + 0x56], ax
mov eax, esi
xor edx, edx
add eax, 0x36
xor ecx, ecx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x34]
mov ebx, 1
mov esi, 0x18
mov word [esp + 0x5c], dx
mov word [esp + 0x5e], cx
mov dword [esp + 0x60], 0x36
mov dword [esp + 0x88], 0x28
mov eax, dword [eax + 8]
mov word [esp + 0x94], bx
mov word [esp + 0x96], si
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0
test eax, eax
je 0x4dcbf5
mov eax, edi
lea esi, [edi + edi*2]
mov dword [esp + 0x40], 0
imul eax, ebp
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x28]
add eax, dword [esp + 0x38]
mov dword [esp + 0x30], eax
lea esi, [esi]
mov eax, dword [esp + 0x28]
test byte [eax], 1
je 0x4dcbcb
test edi, edi
je 0x4dcbcb
mov ecx, dword [esp + 0x2c]
xor ebx, ebx
lea edx, [ecx + esi]
mov eax, ecx
nop
lea esi, [esi]
mov byte [eax], 0
mov byte [eax + 1], 0
add eax, 3
mov byte [eax - 1], 0
cmp edx, eax
jne 0x4dcbb0
add ebx, 1
add ecx, ebp
cmp edi, ebx
jne 0x4dcba3
add dword [esp + 0x28], 1
add dword [esp + 0x2c], esi
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x30], eax
jne 0x4dcb90
add dword [esp + 0x40], 1
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x40]
add dword [esp + 0x48], ecx
cmp dword [esp + 0x38], eax
jne 0x4dcb78
mov eax, dword [esp + 0xd8]
mov dword [esp + 8], 0xc89730
mov esi, 3
mov dword [esp + 0x50], 0
mov eax, dword [eax]
mov dword [esp + 4], eax
lea eax, [esp + 0x50]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_fopen_s]
mov eax, dword [esp + 0x50]
test eax, eax
je 0x4dcca5
mov dword [esp + 0xc], eax
lea eax, [esp + 0x56]
mov dword [esp + 8], 1
mov dword [esp + 4], 0xe
xor esi, esi
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x50]
mov dword [esp + 8], 1
mov dword [esp + 4], 0x28
mov dword [esp + 0xc], eax
lea eax, [esp + 0x88]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x50]
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call fcn.004dd2b0
add esp, 0xbc
mov edx, esi
pop ebx
mov eax, edx
pop esi
pop edi
pop ebp
ret
add esp, 0xbc
mov edx, 1
pop ebx
mov eax, edx
pop esi
pop edi
pop ebp
ret