Function at 0x4e1a00
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x644
mov eax, dword [0x547180]
xor eax, esp
mov dword [esp + 0x640], eax
push ebp
mov ebp, dword [esp + 0x64c]
push edi
push 0x10
push 0x42
mov dword [esp + 0x18], ebp
call dword [0x51f0c8]
push eax
call dword [0x51f0c4]
mov edi, eax
test edi, edi
jne 0x4e1a60
push str.OpenFastFile_:
push 2
call fcn.004e4960
add esp, 8
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x640]
xor ecx, esp
call fcn.004e8205
add esp, 0x644
ret
push ebx
push esi
mov esi, dword [0x51f140]
push 0
push 0x8000080
push 3
push 0
push 1
push 0x80000000
push ebp
mov dword [edi], 0
call esi
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x4e2068
push 0x717bd4
call dword [0x51f0dc]
test eax, eax
je 0x4e1b5b
lea eax, [esp + 0x248]
push eax
lea ecx, [esp + 0x450]
push ecx
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x38]
push eax
push ebp
call fcn.004e9521
mov al, byte [esp + 0x58]
add esp, 0x14
cmp al, 0x5c
je 0x4e1b0a
cmp al, 0x2f
je 0x4e1b0a
mov ebx, dword [0x51f0b4]
push 0x716b20
lea ecx, [esp + 0x148]
push ecx
call ebx
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x148]
push eax
call dword [0x51f0e4]
lea ecx, [esp + 0x144]
push ecx
lea edx, [esp + 0x48]
push edx
call ebx
jmp 0x4e1b10
mov ebx, dword [0x51f0b4]
lea eax, [esp + 0x248]
push eax
lea ecx, [esp + 0x450]
push ecx
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x150]
push 0x717bd4
push eax
call fcn.004e930f
add esp, 0x14
push 0
push 0x8000080
push 3
push 0
push 1
push 0x80000000
lea ecx, [esp + 0x15c]
push ecx
call esi
mov dword [edi + 4], eax
jmp 0x4e1b61
mov ebx, dword [0x51f0b4]
cmp dword [edi + 4], 0xffffffff
jne 0x4e2068
push ebp
xor esi, esi
call dword [0x51f0dc]
dec eax
mov dword [esp + 0x20], eax
lea esp, [esp]
inc esi
cmp esi, eax
mov dword [esp + 0x24], esi
jge 0x4e1ce2
lea ecx, [ecx]
mov al, byte [esi + ebp]
cmp al, 0x5c
je 0x4e1b9f
cmp al, 0x2f
jne 0x4e1cc1
lea edx, [esi + ebp + 1]
push edx
lea eax, [esp + 0x550]
push eax
call ebx
push ebp
lea ecx, [esp + 0x34c]
push ecx
call ebx
push str..bin
lea edx, [esp + esi + 0x34c]
push edx
call ebx
push 0
push 0x8000080
push 3
push 0
push 1
push 0x80000000
lea eax, [esp + 0x360]
push eax
call dword [0x51f140]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x4e1cbb
push 0x717bd4
call dword [0x51f0dc]
test eax, eax
je 0x4e1cbb
lea ecx, [esp + 0x248]
push ecx
lea edx, [esp + 0x450]
push edx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x358]
push edx
call fcn.004e9521
mov al, byte [esp + 0x58]
add esp, 0x14
cmp al, 0x5c
je 0x4e1c6e
cmp al, 0x2f
je 0x4e1c6e
push 0x716b20
lea eax, [esp + 0x148]
push eax
call ebx
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x148]
push edx
call dword [0x51f0e4]
lea eax, [esp + 0x144]
push eax
lea ecx, [esp + 0x48]
push ecx
call ebx
lea edx, [esp + 0x248]
push edx
lea eax, [esp + 0x450]
push eax
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x150]
push 0x717bd4
push edx
call fcn.004e930f
add esp, 0x14
push 0
push 0x8000080
push 3
push 0
push 1
push 0x80000000
lea eax, [esp + 0x15c]
push eax
call dword [0x51f140]
mov dword [edi + 4], eax
cmp dword [edi + 4], 0xffffffff
jne 0x4e1cf7
movsx ecx, byte [esi + ebp]
push ecx
call fcn.004ec54d
add esp, 4
test eax, eax
je 0x4e1cd3
inc esi
inc esi
cmp esi, dword [esp + 0x20]
mov dword [esp + 0x24], esi
jl 0x4e1b90
push ebp
push 0x521a08
push 2
call fcn.004e4960
add esp, 0xc
jmp 0x4e209d
cmp esi, dword [esp + 0x20]
jge 0x4e1ce2
mov ecx, dword [edi + 4]
push 0
lea edx, [esp + 0x2c]
push edx
push 0x14
lea eax, [esp + 0x3c]
push eax
push ecx
call dword [0x51f174]
test eax, eax
je 0x4e2083
mov eax, 8
xor ecx, ecx
jmp 0x4e1d30
mov edx, dword [esp + ecx + 0x30]
cmp edx, dword [ecx + str.ESC_ARC2]
jne 0x4e2083
sub eax, 4
add ecx, 4
cmp eax, 4
jae 0x4e1d30
mov ecx, dword [esp + 0x38]
mov ebp, dword [esp + 0x3c]
xor ecx, 0x65ac9365
lea edx, [ecx + ecx]
xor edx, ecx
mov eax, ecx
shr eax, 1
xor eax, ecx
add edx, edx
shr eax, 3
add edx, edx
add edx, edx
xor eax, edx
xor eax, ecx
xor ebp, eax
xor eax, 0x65ac9365
lea ecx, [eax + eax]
xor ecx, eax
mov esi, eax
shr esi, 1
xor esi, eax
add ecx, ecx
mov dword [esp + 0x14], ebp
add ecx, ecx
shr esi, 3
add ecx, ecx
lea ebp, [ebp + ebp*2]
xor esi, ecx
xor esi, eax
mov eax, dword [esp + 0x40]
add ebp, ebp
add ebp, ebp
push ebp
xor eax, esi
push 0
mov dword [esp + 0x18], eax
call dword [0x51f0c8]
push eax
call dword [0x51f0c4]
mov ebx, eax
test ebx, ebx
je 0x4e1f9a
mov eax, dword [edi + 4]
push 0
lea edx, [esp + 0x2c]
push edx
push ebp
push ebx
push eax
call dword [0x51f174]
test eax, eax
je 0x4e1fb2
mov ecx, dword [esp + 0x10]
push ecx
push 0
call dword [0x51f0c8]
push eax
call dword [0x51f0c4]
mov ecx, dword [esp + 0x10]
push 0
lea edx, [esp + 0x2c]
push edx
mov edx, dword [edi + 4]
push ecx
push eax
push edx
mov dword [esp + 0x30], eax
call dword [0x51f174]
test eax, eax
je 0x4e1ffe
shr ebp, 2
mov eax, ebx
test ebp, ebp
je 0x4e1e48
jmp 0x4e1e20
xor esi, 0x65ac9365
lea edx, [esi + esi]
xor edx, esi
mov ecx, esi
shr ecx, 1
add edx, edx
xor ecx, esi
add edx, edx
shr ecx, 3
add edx, edx
xor ecx, edx
xor esi, ecx
xor dword [eax], esi
dec ebp
add eax, 4
test ebp, ebp
jne 0x4e1e20
mov eax, dword [esp + 0x14]
add eax, 0xffffffff
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
jns 0x4e1eb4
mov ebp, dword [esp + 0x1c]
mov esi, dword [0x51f0c0]
push ebp
call esi
push eax
call dword [0x51f0bc]
push ebp
call esi
mov ebp, dword [0x51f0b8]
push eax
call ebp
push ebx
call esi
push eax
call dword [0x51f0bc]
push ebx
call esi
push eax
call ebp
mov ecx, dword [edi + 4]
push ecx
call dword [0x51f0cc]
mov esi, dword [esp + 0x24]
mov ebx, dword [0x51f0b4]
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
jmp 0x4e1b80
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0x1c]
add eax, ecx
cdq
sub eax, edx
mov esi, eax
sar esi, 1
lea edx, [esi + esi*2]
mov eax, dword [ebx + edx*4]
add eax, ebp
push eax
lea ecx, [esp + 0x550]
push ecx
call dword [0x51f0e8]
test eax, eax
jge 0x4e1ee7
dec esi
mov dword [esp + 0x14], esi
jmp 0x4e1eee
jle 0x4e1efd
inc esi
mov dword [esp + 0x10], esi
mov edx, dword [esp + 0x14]
cmp dword [esp + 0x10], edx
jle 0x4e1eb0
jmp 0x4e1e61
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x10], eax
jg 0x4e1e61
lea eax, [esi + esi*2]
mov ecx, dword [ebx + eax*4 + 4]
mov esi, dword [0x51f0c0]
lea eax, [ebx + eax*4]
mov dword [edi + 8], ecx
mov edx, dword [eax + 8]
push ebp
mov dword [edi + 0xc], edx
call esi
push eax
call dword [0x51f0bc]
push ebp
call esi
mov ebp, dword [0x51f0b8]
push eax
call ebp
push ebx
call esi
push eax
call dword [0x51f0bc]
push ebx
call esi
push eax
call ebp
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
push 0
push 0
push eax
push ecx
call dword [0x51f170]
cmp eax, 0xffffffff
jne 0x4e2062
mov edx, dword [esp + 0x18]
push edx
push 0x5219d0
push 2
call fcn.004e4960
mov eax, dword [edi + 4]
add esp, 0xc
push eax
call dword [0x51f0cc]
push edi
call esi
push eax
call dword [0x51f0bc]
push edi
call esi
push eax
call ebp
xor eax, eax
jmp 0x4e206a
push str.OpenFastFile_:
push 2
call fcn.004e4960
mov edx, dword [edi + 4]
add esp, 8
push edx
jmp 0x4e2097
mov eax, dword [esp + 0x18]
push eax
push 0x5219a4
push 2
call fcn.004e4960
mov esi, dword [0x51f0c0]
add esp, 0xc
push ebx
call esi
mov ebp, dword [0x51f0bc]
push eax
call ebp
push ebx
call esi
mov ebx, dword [0x51f0b8]
push eax
call ebx
mov ecx, dword [edi + 4]
push ecx
call dword [0x51f0cc]
push edi
call esi
push eax
call ebp
push edi
call esi
push eax
call ebx
xor eax, eax
jmp 0x4e206a
mov edx, dword [esp + 0x18]
push edx
push 0x5219a4
push 2
call fcn.004e4960
mov eax, dword [esp + 0x28]
mov esi, dword [0x51f0c0]
add esp, 0xc
push eax
call esi
mov ebp, dword [0x51f0bc]
push eax
call ebp
mov ecx, dword [esp + 0x1c]
push ecx
call esi
push eax
call dword [0x51f0b8]
push ebx
call esi
push eax
call ebp
push ebx
call esi
mov ebx, dword [0x51f0b8]
push eax
call ebx
mov edx, dword [edi + 4]
push edx
call dword [0x51f0cc]
push edi
call esi
push eax
call ebp
push edi
call esi
push eax
call ebx
xor eax, eax
jmp 0x4e206a
mov dword [edi], 1
mov eax, edi
mov ecx, dword [esp + 0x650]
pop esi
pop ebx
pop edi
pop ebp
xor ecx, esp
call fcn.004e8205
add esp, 0x644
ret
push ebp
push 0x5219a4
push 2
call fcn.004e4960
mov ecx, dword [edi + 4]
add esp, 0xc
push ecx
call dword [0x51f0cc]
mov esi, dword [0x51f0c0]
push edi
call esi
push eax
call dword [0x51f0bc]
push edi
call esi
push eax
call dword [0x51f0b8]
xor eax, eax
jmp 0x4e206a