Function at 0x4d7d67
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x5abe3d
call fcn.00591b5c
sub esp, 0x90
cmp dword [ebp + 8], 0
jne 0x4d7d84
xor al, al
jmp 0x4d7fbf
mov eax, dword [ebp + 8]
movsx eax, byte [eax]
test eax, eax
jne 0x4d7d95
xor al, al
jmp 0x4d7fbf
lea ecx, [ebp - 0x90]
call fcn.004cde9c
and dword [ebp - 4], 0
lea ecx, [ebp - 0x74]
call fcn.004d00b6
mov byte [ebp - 4], 1
push dword [ebp + 8]
lea ecx, [ebp - 0x74]
call fcn.004d03d5
push dword [ebp + 0x1c]
lea eax, [ebp - 0x74]
push eax
push 0x36
call fcn.004d5565
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4d7e02
and byte [ebp - 0x99], 0
and byte [ebp - 4], 0
lea ecx, [ebp - 0x74]
call fcn.004d018e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
call fcn.004ce1b7
mov al, byte [ebp - 0x99]
jmp 0x4d7fbf
cmp dword [ebp + 0xc], 0
je 0x4d7ec8
cmp dword [ebp + 0x10], 0
je 0x4d7ec8
and dword [ebp - 0x94], 0
push 0
lea eax, [ebp - 0x94]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x94]
cmp eax, dword [ebp + 0x10]
je 0x4d7ec8
cmp dword [ebp + 0x1c], 0
je 0x4d7e8f
lea ecx, [ebp - 0x90]
call fcn.004cfd54
push dword [ebp + 8]
push str.filename
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x1c]
call dword [eax + 0x28]
lea ecx, [ebp - 0x90]
call fcn.0055420c
push eax
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x1c]
call dword [eax + 0x10]
push str.Failed_to_write_complete_file__4_
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x1c]
call dword [eax + 0x10]
push 0
push dword [ebp - 0x10]
call fcn.004e81eb
pop ecx
pop ecx
and byte [ebp - 0x9a], 0
and byte [ebp - 4], 0
lea ecx, [ebp - 0x74]
call fcn.004d018e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
call fcn.004ce1b7
mov al, byte [ebp - 0x9a]
jmp 0x4d7fbf
cmp dword [ebp + 0x14], 0
je 0x4d7f8b
cmp dword [ebp + 0x18], 0
je 0x4d7f8b
and dword [ebp - 0x98], 0
push 0
lea eax, [ebp - 0x98]
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x98]
cmp eax, dword [ebp + 0x18]
je 0x4d7f8b
cmp dword [ebp + 0x1c], 0
je 0x4d7f55
lea ecx, [ebp - 0x90]
call fcn.004cfd54
push dword [ebp + 8]
push str.filename
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x1c]
call dword [eax + 0x28]
lea ecx, [ebp - 0x90]
call fcn.0055420c
push eax
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x1c]
call dword [eax + 0x10]
push str.Failed_to_write_complete_file__5_
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x1c]
call dword [eax + 0x10]
push 0
push dword [ebp - 0x10]
call fcn.004e81eb
pop ecx
pop ecx
and byte [ebp - 0x9b], 0
and byte [ebp - 4], 0
lea ecx, [ebp - 0x74]
call fcn.004d018e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
call fcn.004ce1b7
mov al, byte [ebp - 0x9b]
jmp 0x4d7fbf
push 0
push dword [ebp - 0x10]
call fcn.004e81eb
pop ecx
pop ecx
mov byte [ebp - 0x9c], 1
and byte [ebp - 4], 0
lea ecx, [ebp - 0x74]
call fcn.004d018e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
call fcn.004ce1b7
mov al, byte [ebp - 0x9c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret