Function at 0x4545c0
Capabilities:
Clear file content
Encode data using xor

Disassembly:
sub esp, 0x168
push ebx
push edi
mov edi, dword [esp + 0x174]
xor ebx, ebx
mov eax, 1
mov ecx, dword [edi]
mov dword [esp + 0x30], eax
cmp ecx, ebx
je 0x454b42
mov ecx, dword [edi + 0x14]
cmp ecx, ebx
je 0x454b42
mov eax, dword [edi + 8]
push ebp
push esi
mov esi, dword [edi + 4]
test eax, 0x40000000
mov dword [esp + 0x40], esi
je 0x45476e
cmp ecx, 0xffffffff
jne 0x45463e
push ebx
push ebx
push esi
call fcn.00451230
add esp, 0xc
test eax, eax
jne 0x454b18
test byte [edi + 8], 1
je 0x454628
push 1
jmp 0x454629
push ebx
push esi
call fcn.00452de0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x454b18
mov ebx, dword [edi + 0xc]
push 0
push ebx
push esi
mov dword [esp + 0x3c], ebx
call fcn.00451230
add esp, 0xc
cmp eax, ebx
jne 0x454b18
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test byte [edi + 8], 1
je 0x45472d
mov eax, dword [edi + 0x10]
lea ecx, [esp + 0x14]
push 4
push ecx
push esi
mov dword [esp + 0x20], 0x605444f
mov dword [esp + 0x2c], eax
call fcn.004510b0
mov edx, dword [esp + 0x2c]
push edx
call fcn.00451500
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x454b18
mov eax, dword [esp + 0x20]
push eax
push eax
mov eax, dword [edi + 0x14]
push eax
push ebx
call fcn.0045cb60
mov ebp, eax
push ebp
push ebx
push esi
call fcn.004510b0
push ebx
mov dword [esp + 0x4c], eax
call fcn.00451530
mov eax, dword [esp + 0x4c]
add esp, 0x20
cmp ebp, eax
jne 0x454b18
mov ecx, dword [esp + 0x30]
mov edx, dword [edi + 0x1c]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], 0x605444f
mov dword [esp + 0x18], ebp
mov word [esp + 0x28], 0
mov dword [esp + 0x1c], edx
mov ecx, 4
mov al, cl
mov dl, 3
imul dl
mov bl, byte [esp + ecx + 0x14]
sub al, 0x5b
xor bl, al
mov byte [esp + ecx + 0x14], bl
inc ecx
cmp ecx, 0x16
jb 0x4546f7
lea eax, [esp + 0x14]
push 0x16
push eax
push esi
call fcn.004510b0
add esp, 0xc
cmp eax, 0x16
jne 0x454b18
jmp 0x454b20
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x14]
push eax
push ecx
push esi
mov dword [esp + 0x2c], eax
call fcn.004510b0
mov ecx, dword [esp + 0x2c]
add esp, 0xc
cmp eax, ecx
jne 0x454b18
mov edx, dword [edi + 0x1c]
xor eax, eax
mov dword [esp + 0x14], 0x6054b50
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], eax
mov word [esp + 0x28], ax
mov dword [esp + 0x1c], edx
jmp 0x45470f
test eax, 0x80000000
je 0x454b20
mov ebp, dword [edi + 0x18]
push ebx
push ebp
push esi
call fcn.00451230
add esp, 0xc
cmp eax, ebp
jne 0x454b18
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x454b18
mov ecx, dword [edi]
push ecx
call fcn.00455a50
mov ecx, eax
push edi
shl eax, 4
add eax, ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x18], ebx
lea edx, [eax + eax*8]
lea eax, [esp + 0x4c]
shl edx, 1
push eax
mov dword [esp + 0x2c], edx
call fcn.00453870
mov edx, dword [0x4cce28]
xor eax, eax
sub ebp, edx
add esp, 0xc
mov dword [esp + 0x14], 0x6054b50
mov dword [esp + 0x24], ebp
mov dword [esp + 0x18], eax
mov word [esp + 0x28], ax
mov word [esp + 0x1c], ax
mov word [esp + 0x1e], ax
call fcn.00452380
cmp eax, 0xffffffff
je 0x454b18
lea ecx, [eax + eax*2]
lea edx, [eax + ecx*4]
mov eax, dword [0x4cce2c]
lea ebp, [eax + edx*4]
mov dword [esp + 0x2c], ebp
mov dword [ebp + 0x20], 0x40000000
mov al, byte [edi + 8]
test al, 1
je 0x4549f2
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], 0x605444f
lea edx, [ecx + ecx]
push edx
call fcn.00451500
add esp, 4
mov dword [esp + 0x34], eax
test eax, eax
je 0x454b18
mov ecx, dword [esp + 0x20]
mov ebp, eax
lea edx, [eax + ecx]
lea eax, [esp + 0x74]
push eax
push 0x80
push 0
mov dword [esp + 0x48], edx
call fcn.00453640
add esp, 0xc
cmp eax, 0xffffffff
je 0x4549e0
mov al, byte [esp + 0x74]
test al, al
je 0x454922
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
cmp eax, ecx
jge 0x4549e0
mov edx, dword [0x4cce20]
lea edi, [esp + 0x74]
mov esi, dword [0x4cce28]
mov eax, dword [edx + 0x18]
mov dword [esp + 0x50], eax
mov ecx, dword [edx]
mov dword [esp + 0x54], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x58], eax
mov ecx, dword [edx + 0xc]
mov dword [esp + 0x5c], ecx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebp
mov word [esp + 0x60], cx
mov eax, dword [edx + 0x10]
sub eax, esi
lea esi, [esp + 0x44]
mov dword [esp + 0x6e], eax
mov cx, word [edx + 4]
mov word [esp + 0x4e], cx
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsx ecx, word [esp + 0x60]
add ebp, 0x2e
mov edx, ecx
lea esi, [esp + 0x74]
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movsx eax, word [esp + 0x60]
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x17c]
add ebp, eax
lea ebx, [ebx + eax + 0x2e]
inc dword [esp + 0x10]
lea eax, [esp + 0x74]
push eax
call fcn.004536d0
add esp, 4
cmp eax, 0xffffffff
jne 0x454875
mov eax, dword [esp + 0x2c]
xor ecx, ecx
push 4
mov dword [eax + 8], ecx
mov dword [eax + 0x20], ecx
lea ecx, [esp + 0x18]
push ecx
push esi
call fcn.004510b0
add esp, 0xc
cmp eax, 4
jne 0x4549e0
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
push edx
push ebx
push eax
push ecx
call fcn.0045cb60
mov edx, dword [esp + 0x4c]
mov ebp, eax
push ebp
push edx
push esi
mov dword [esp + 0x3c], ebx
call fcn.004510b0
add esp, 0x1c
cmp eax, ebp
jne 0x4549e0
mov eax, dword [esp + 0x34]
push eax
call fcn.00451530
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x18], ebp
mov word [esp + 0x1c], ax
mov word [esp + 0x1e], ax
mov ecx, 4
mov al, cl
mov dl, 3
imul dl
mov bl, byte [esp + ecx + 0x14]
sub al, 0x5b
xor bl, al
mov byte [esp + ecx + 0x14], bl
inc ecx
cmp ecx, 0x16
jb 0x4549af
lea eax, [esp + 0x14]
push 0x16
push eax
push esi
call fcn.004510b0
add esp, 0xc
cmp eax, 0x16
je 0x454b20
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00451530
add esp, 4
jmp 0x454b18
lea edx, [esp + 0x74]
push edx
push 0x80
push 0
call fcn.00453640
add esp, 0xc
cmp eax, 0xffffffff
je 0x454b18
mov al, byte [esp + 0x74]
test al, al
je 0x454aca
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
cmp ecx, eax
jge 0x454b18
mov edx, dword [0x4cce20]
lea edi, [esp + 0x74]
push 0x2e
mov ecx, dword [edx + 0x18]
mov dword [esp + 0x54], ecx
mov eax, dword [edx]
mov dword [esp + 0x58], eax
mov ecx, dword [edx + 8]
mov dword [esp + 0x5c], ecx
mov eax, dword [edx + 0xc]
mov dword [esp + 0x60], eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
mov edi, dword [0x4cce28]
dec ecx
mov word [esp + 0x64], cx
mov eax, dword [edx + 0x10]
movsx ecx, cx
sub eax, ecx
sub eax, edi
sub eax, 0x1e
mov dword [esp + 0x72], eax
mov cx, word [edx + 4]
lea edx, [esp + 0x48]
mov word [esp + 0x52], cx
push edx
push esi
call fcn.004510b0
add esp, 0xc
cmp eax, 0x2e
jne 0x454b11
mov ax, word [esp + 0x60]
lea ecx, [esp + 0x74]
movsx edi, ax
movsx eax, ax
push eax
push ecx
push esi
call fcn.004510b0
add esp, 0xc
cmp eax, edi
jne 0x454b11
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x2c]
inc eax
lea ebx, [ebx + edi + 0x2e]
mov edi, dword [esp + 0x17c]
mov dword [esp + 0x10], eax
lea edx, [esp + 0x74]
push edx
call fcn.004536d0
add esp, 4
cmp eax, 0xffffffff
jne 0x454a0f
xor eax, eax
push 0x16
mov dword [ebp + 8], eax
mov dword [ebp + 0x20], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], ebx
mov word [esp + 0x20], ax
mov word [esp + 0x22], ax
lea eax, [esp + 0x18]
push eax
push esi
call fcn.004510b0
add esp, 0xc
cmp eax, 0x16
je 0x454b20
jmp 0x454b18
mov edi, dword [esp + 0x17c]
mov dword [esp + 0x38], 0
mov eax, dword [edi + 0x14]
pop esi
cmp eax, 0xffffffff
pop ebp
je 0x454b37
test eax, eax
je 0x454b37
push eax
call fcn.00451530
add esp, 4
mov eax, dword [esp + 0x30]
mov dword [edi + 0x14], 0
pop edi
pop ebx
add esp, 0x168
ret