Function at 0x5bdcfc
Capabilities:
Clear file content
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 9
push 0
push 0
dec ecx
jne 0x5bdd05
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5be29d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
call fcn.0040504c
xor eax, eax
push ebp
push 0x5be24b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5be2b8
lea edx, [ebp - 0x34]
mov eax, ebx
call fcn.0040a000
push dword [ebp - 0x34]
push 0x5be2b8
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.004053f8
mov eax, dword [ebp - 0x30]
mov edx, 0x5be2c4
call fcn.00405680
test eax, eax
jle 0x5bde0d
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
lea edx, [ebp - 0x38]
mov eax, ebx
call fcn.0040a000
mov eax, dword [ebp - 0x38]
call fcn.00405538
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
mov eax, ebx
cdq
cmp edx, 0
jne 0x5bddae
cmp eax, 0xffffffff
je 0x5bddfb
xor eax, eax
mov dword [ebp - 0x2c], eax
push 0
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 8]
call fcn.00405338
add eax, 2
push eax
push dword [ebp - 8]
push 0x5be2f8
push 0x5be304
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.004053f8
mov eax, dword [ebp - 0x3c]
call fcn.00405538
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle_1
jmp 0x5be241
lea edx, [ebp - 0x18]
mov eax, 5
call fcn.0047cd54
jmp 0x5be241
xor eax, eax
push ebp
push 0x5be23a
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x28], eax
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.005bcee8
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
call fcn.00446114
test al, al
je 0x5bde9c
xor eax, eax
push ebp
push 0x5bde67
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x22
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x41ad24]
call fcn.0041fa78
mov dword [ebp - 0x28], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5bde8b
inc dword [ebp - 0x20]
cmp dword [ebp - 0x28], 0
jne 0x5bdeb3
cmp dword [ebp - 0x20], 0xa
jle 0x5bde3b
jmp 0x5bdeb3
push 0xffff
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x41ad24]
call fcn.0041fa78
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x5be211
xor eax, eax
push ebp
push 0x5be20a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x5bdee0
cmp eax, 0x6400
jbe 0x5bdef8
jmp 0x5bdee2
jle 0x5bdef8
cmp dword [ebp - 4], 0
jle 0x5bdef8
mov eax, dword [0x5fe344]
mov eax, dword [eax]
mov dx, 0xfff5
call fcn.0046edd4
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.004050e4
cmp dword [ebp - 4], 0xffffffff
jne 0x5bdf69
cmp byte [ebp + 8], 0
je 0x5bdf30
lea eax, [ebp - 0x40]
push eax
mov ecx, 0x5be310
mov edx, 0x5be2b8
mov eax, dword [ebp - 0x14]
call fcn.0047d31c
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x14]
call fcn.004050e4
push 0
push 0
mov eax, dword [ebp - 0x28]
call fcn.0041f580
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SetEndOfFile_1
mov eax, dword [ebp - 0x14]
call fcn.00405338
push eax
lea eax, [ebp - 0x14]
call fcn.00405590
mov edx, eax
mov eax, dword [ebp - 0x28]
pop ecx
mov ebx, dword [eax]
call dword [ebx + 0x10]
jmp 0x5be1f4
cmp byte [ebp + 8], 0
je 0x5bdf90
lea eax, [ebp - 0x44]
push eax
mov edx, 0x5be310
mov ecx, 0x5be2b8
mov eax, dword [ebp - 0x14]
call fcn.0047d31c
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 0x14]
call fcn.004050e4
cmp dword [ebp - 4], 0
jg 0x5be069
mov byte [ebp - 0x1b], 0
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x5bdfd4
cmp eax, 1
jne 0x5bdfd4
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
call dword [edx]
mov edx, eax
xor ecx, ecx
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x14]
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
mov edx, 0x5be310
call fcn.00405384
jmp 0x5be048
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x5bdfe7
cmp eax, 1
jbe 0x5be035
jmp 0x5bdfe9
jle 0x5be035
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
call dword [edx]
mov edx, eax
sub edx, 2
xor ecx, ecx
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x14]
lea edx, [ebp - 0x1a]
mov ecx, 2
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea eax, [ebp - 0x1b]
mov edx, 0x5be314
xor ecx, ecx
mov cl, byte [eax]
inc ecx
call fcn.004037c8
je 0x5be048
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
mov edx, 0x5be310
call fcn.00405384
jmp 0x5be048
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
call dword [edx]
mov edx, eax
xor ecx, ecx
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 0x14]
call fcn.00405338
push eax
lea eax, [ebp - 0x14]
call fcn.00405590
mov edx, eax
mov eax, dword [ebp - 0x28]
pop ecx
mov ebx, dword [eax]
call dword [ebx + 0x10]
jmp 0x5be1f4
mov byte [ebp - 0x21], 1
mov dl, 1
mov eax, dword [0x41ab00]
call fcn.004040ec
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x5be1ed
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.0041f498
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x1d], 1
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x5be0ae
cmp eax, 0
jbe 0x5be0bb
jmp 0x5be0b0
jle 0x5be0bb
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x6c]
cmp byte [ebp + 0xc], 2
jne 0x5be0e2
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, dword [ebp - 4]
jl 0x5be0dc
mov edx, dword [ebp - 4]
dec edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x48]
jmp 0x5be138
mov byte [ebp - 0x21], 0
jmp 0x5be138
cmp byte [ebp + 0xc], 1
jne 0x5be11c
jmp 0x5be0f4
xor edx, edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, dword [ebp - 4]
jl 0x5be0ea
mov edx, dword [ebp - 4]
dec edx
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x60]
jmp 0x5be138
xor edx, edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, dword [ebp - 4]
jl 0x5be112
mov edx, dword [ebp - 4]
dec edx
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x20]
cmp byte [ebp - 0x21], 0
je 0x5be1d7
push 0
push 0
mov eax, dword [ebp - 0x28]
call fcn.0041f580
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SetEndOfFile_1
lea eax, [ebp - 0x14]
mov edx, 0x5be310
call fcn.004050e4
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x5be1d7
inc esi
xor ebx, ebx
lea ecx, [ebp - 0x48]
mov edx, ebx
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x48]
call fcn.00405338
push eax
lea ecx, [ebp - 0x4c]
mov edx, ebx
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x4c]
call fcn.00405538
mov edx, eax
mov eax, dword [ebp - 0x28]
pop ecx
mov edi, dword [eax]
call dword [edi + 0x10]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
cmp ebx, eax
jge 0x5be1d3
lea eax, [ebp - 0x14]
call fcn.00405590
mov edx, eax
mov ecx, 2
mov eax, dword [ebp - 0x28]
mov edi, dword [eax]
call dword [edi + 0x10]
inc ebx
dec esi
jne 0x5be179
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5be1f4
mov eax, dword [ebp - 0xc]
call fcn.0040411c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5be21e
mov eax, dword [ebp - 0x28]
call fcn.0040411c
ret
lea edx, [ebp - 0x18]
mov eax, 5
call fcn.0047cd54
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5be241
mov eax, dword [0x5fe344]
mov eax, dword [eax]
xor edx, edx
call fcn.0046edd4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5be26d
mov eax, dword [ebp - 0x18]
call fcn.005e5a00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5be2a4
lea eax, [ebp - 0x4c]
mov edx, 8
call fcn.00405070
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00405070
ret