Function at 0x5487e8
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 0x5487f1
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 0x548d89
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
call fcn.00404ff4
xor eax, eax
push ebp
push 0x548d37
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x548da4
lea edx, [ebp - 0x34]
mov eax, ebx
call fcn.00409ad0
push dword [ebp - 0x34]
push 0x548da4
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00405390
mov eax, dword [ebp - 0x30]
mov edx, 0x548db0
call fcn.00405614
test eax, eax
jle 0x5488f9
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
lea edx, [ebp - 0x38]
mov eax, ebx
call fcn.00409ad0
mov eax, dword [ebp - 0x38]
call fcn.004054d0
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
mov eax, ebx
cdq
cmp edx, 0
jne 0x54889a
cmp eax, 0xffffffff
je 0x5488e7
xor eax, eax
mov dword [ebp - 0x2c], eax
push 0
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 8]
call fcn.004052d0
add eax, 2
push eax
push dword [ebp - 8]
push 0x548de4
push 0x548df0
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.00405390
mov eax, dword [ebp - 0x3c]
call fcn.004054d0
push eax
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
jmp 0x548d2d
lea edx, [ebp - 0x18]
mov eax, 5
call fcn.00479b64
jmp 0x548d2d
xor eax, eax
push ebp
push 0x548d26
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.00547c24
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
call fcn.00443028
test al, al
je 0x548988
xor eax, eax
push ebp
push 0x548953
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x22
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x41afc0]
call fcn.0041fe7c
mov dword [ebp - 0x28], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x548977
inc dword [ebp - 0x20]
cmp dword [ebp - 0x28], 0
jne 0x54899f
cmp dword [ebp - 0x20], 0xa
jle 0x548927
jmp 0x54899f
push 0xffff
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x41afc0]
call fcn.0041fe7c
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x548cfd
xor eax, eax
push ebp
push 0x548cf6
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 0x5489cc
cmp eax, 0x6400
jbe 0x5489e4
jmp 0x5489ce
jle 0x5489e4
cmp dword [ebp - 4], 0
jle 0x5489e4
mov eax, dword [0x5b2e88]
mov eax, dword [eax]
mov dx, 0xfff5
call fcn.0046ac64
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.0040508c
cmp dword [ebp - 4], 0xffffffff
jne 0x548a55
cmp byte [ebp + 8], 0
je 0x548a1c
lea eax, [ebp - 0x40]
push eax
mov ecx, 0x548dfc
mov edx, 0x548da4
mov eax, dword [ebp - 0x14]
call fcn.0047a0a0
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x14]
call fcn.0040508c
push 0
push 0
mov eax, dword [ebp - 0x28]
call fcn.0041f984
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 4]
push eax
call sub.KERNEL32.DLL_SetEndOfFile
mov eax, dword [ebp - 0x14]
call fcn.004052d0
push eax
lea eax, [ebp - 0x14]
call fcn.00405528
mov edx, eax
mov eax, dword [ebp - 0x28]
pop ecx
mov ebx, dword [eax]
call dword [ebx + 0x10]
jmp 0x548ce0
cmp byte [ebp + 8], 0
je 0x548a7c
lea eax, [ebp - 0x44]
push eax
mov edx, 0x548dfc
mov ecx, 0x548da4
mov eax, dword [ebp - 0x14]
call fcn.0047a0a0
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 0x14]
call fcn.0040508c
cmp dword [ebp - 4], 0
jg 0x548b55
mov byte [ebp - 0x1b], 0
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x548ac0
cmp eax, 1
jne 0x548ac0
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, 0x548dfc
call fcn.0040531c
jmp 0x548b34
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x548ad3
cmp eax, 1
jbe 0x548b21
jmp 0x548ad5
jle 0x548b21
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, 0x548e00
xor ecx, ecx
mov cl, byte [eax]
inc ecx
call fcn.0040379c
je 0x548b34
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
mov edx, 0x548dfc
call fcn.0040531c
jmp 0x548b34
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.004052d0
push eax
lea eax, [ebp - 0x14]
call fcn.00405528
mov edx, eax
mov eax, dword [ebp - 0x28]
pop ecx
mov ebx, dword [eax]
call dword [ebx + 0x10]
jmp 0x548ce0
mov byte [ebp - 0x21], 1
mov dl, 1
mov eax, dword [0x41ad9c]
call fcn.004040b0
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x548cd9
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.0041f89c
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 0x548b9a
cmp eax, 0
jbe 0x548ba7
jmp 0x548b9c
jle 0x548ba7
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x6c]
cmp byte [ebp + 0xc], 2
jne 0x548bce
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, dword [ebp - 4]
jl 0x548bc8
mov edx, dword [ebp - 4]
dec edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x48]
jmp 0x548c24
mov byte [ebp - 0x21], 0
jmp 0x548c24
cmp byte [ebp + 0xc], 1
jne 0x548c08
jmp 0x548be0
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 0x548bd6
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 0x548c24
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 0x548bfe
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 0x548cc3
push 0
push 0
mov eax, dword [ebp - 0x28]
call fcn.0041f984
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 4]
push eax
call sub.KERNEL32.DLL_SetEndOfFile
lea eax, [ebp - 0x14]
mov edx, 0x548dfc
call fcn.0040508c
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x548cc3
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.004052d0
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.004054d0
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 0x548cbf
lea eax, [ebp - 0x14]
call fcn.00405528
mov edx, eax
mov ecx, 2
mov eax, dword [ebp - 0x28]
mov edi, dword [eax]
call dword [edi + 0x10]
inc ebx
dec esi
jne 0x548c65
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x548ce0
mov eax, dword [ebp - 0xc]
call fcn.004040e0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x548d0a
mov eax, dword [ebp - 0x28]
call fcn.004040e0
ret
lea edx, [ebp - 0x18]
mov eax, 5
call fcn.00479b64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x548d2d
mov eax, dword [0x5b2e88]
mov eax, dword [eax]
xor edx, edx
call fcn.0046ac64
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x548d59
mov eax, dword [ebp - 0x18]
call fcn.005a1e8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x548d90
lea eax, [ebp - 0x4c]
mov edx, 8
call fcn.00405018
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00405018
ret