Function at 0x4548dd
Capabilities:
Encode data using xor
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x10994
call fcn.00426e10
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea edx, [esp + 0x6b8]
xor eax, eax
xor ecx, ecx
push edx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov word [esp + 0x68], ax
mov word [esp + 0x272], cx
mov dword [esp + 0x498], ebx
call fcn.0044493f
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push ebx
push eax
push ecx
mov dword [esp + 0x34], 1
call fcn.004161ad
mov eax, dword [ebp + 0xc]
add esp, 0xc
lea edx, [esp + 0x790]
push edx
push eax
push esi
call fcn.00454545
test eax, eax
je 0x454978
lea eax, [ebx + 6]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esi]
push ecx
push 1
lea edx, [esp + 0x1b]
push 1
push edx
call fcn.00416817
mov eax, dword [esi]
push eax
push 1
lea ecx, [esp + 0x2c]
push 4
push ecx
call fcn.00416817
mov edx, dword [esi]
mov edi, dword [esp + 0x34]
push edx
push 1
lea eax, [esp + 0x3c]
push 4
xor edi, 0x87bc
push eax
mov dword [esp + 0x48], edi
call fcn.00416817
mov ecx, dword [esi]
push ecx
push 1
lea edx, [esp + 0x4c]
push 4
push edx
call fcn.00416817
mov eax, dword [esp + 0x54]
xor eax, 0xa685
add esp, 0x40
mov dword [esp + 0x2c], eax
mov eax, dword [esi]
push eax
push 1
lea ecx, [esp + 0x3c]
push 4
push ecx
call fcn.00416817
mov edx, dword [esi]
push edx
push 1
lea eax, [esp + 0x48]
push 4
push eax
call fcn.00416817
mov ecx, dword [esi]
push ecx
push 1
lea edx, [esp + 0x64]
push 4
push edx
call fcn.00416817
mov eax, dword [esi]
push eax
push 1
lea ecx, [esp + 0x70]
push 4
push ecx
call fcn.00416817
add esp, 0x40
lea edx, [esp + 0x4a8]
push edx
call fcn.004370fc
lea eax, [esp + 0x4a8]
push 0x482330
push eax
call fcn.0041610c
add esp, 8
mov dword [esp + 0x20], eax
cmp eax, ebx
jne 0x454a59
mov eax, 9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esi + 8]
add ecx, 0x2477
push ecx
lea edx, [esp + 0x6bc]
push edx
call fcn.00444899
xor eax, eax
cmp edi, ebx
jle 0x454b17
jmp 0x454a85
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
lea ecx, [eax + 0x10000]
cmp ecx, edi
jle 0x454a93
sub edi, eax
jmp 0x454a98
mov edi, 0x10000
mov edx, dword [esi]
push edx
add eax, edi
push edi
mov dword [esp + 0x24], eax
lea eax, [esp + 0x9a8]
push 1
push eax
call fcn.00416817
add esp, 0x10
cmp edi, ebx
mov dword [esp + 0x24], ebx
jle 0x454ade
nop
lea ecx, [esp + 0x6b8]
push ecx
call fcn.00444911
mov ecx, dword [esp + 0x24]
xor byte [esp + ecx + 0x9a0], al
inc ecx
cmp ecx, edi
mov dword [esp + 0x24], ecx
jl 0x454abd
push edi
lea edx, [esp + 0x9a4]
push edx
lea eax, [esp + 0x30]
push eax
call fcn.004374b0
mov ecx, dword [esp + 0x20]
push ecx
push edi
lea edx, [esp + 0x9a8]
push 1
push edx
call fcn.00416402
mov eax, dword [esp + 0x28]
add esp, 0x10
cmp dword [esp + 0x1c], eax
jl 0x454a7d
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004164fb
mov edx, dword [esp + 0x2c]
add esp, 4
cmp dword [esp + 0x2c], edx
je 0x454b4a
lea eax, [esp + 0x4a8]
push eax
call dword [0x47d1b4]
mov eax, 0xa
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp byte [esp + 0x13], 1
jne 0x454be1
xor ecx, ecx
lea eax, [esp + 0x4a8]
mov word [esp + 0x64], cx
push eax
lea ecx, [esp + 0x68]
xor edx, edx
push ecx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov word [esp + 0x276], dx
mov dword [esp + 0x49c], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
call fcn.00413146
mov edx, dword [ebp + 0x10]
push edx
lea eax, [esp + 0x27a]
push eax
call fcn.00413146
add esp, 0x10
lea ecx, [esp + 0x40]
push ecx
call fcn.0044c393
test eax, eax
je 0x454c14
lea edx, [esp + 0x4a8]
push edx
call dword [0x47d1b4]
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
push ebx
push eax
lea ecx, [esp + 0x4b0]
push ecx
call dword [0x47d1c4]
test eax, eax
jne 0x454c14
lea edx, [esp + 0x4a8]
push edx
call dword [0x47d1b4]
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea eax, [esp + 0x4a8]
push eax
call dword [0x47d1b4]
mov eax, dword [ebp + 0x10]
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x34]
push edx
push eax
call fcn.004370b9
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc