Function at 0x4ed5d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x644
mov eax, dword [0x58e710]
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 [0x55f0d8]
push eax
call dword [0x55f0d4]
mov edi, eax
test edi, edi
jne 0x4ed630
push str.OpenFastFile_:
push 2
call fcn.004f06c0
add esp, 8
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x640]
xor ecx, esp
call fcn.004f3f55
add esp, 0x644
ret
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
mov eax, dword [0x58e63c]
push ebx
push esi
test al, 2
je 0x4ed79f
mov esi, dword [0x55f150]
push 0
push 0x8000080
push 3
push 0
push 1
push 0x80000000
push ebp
call esi
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x4ed742
push 0xc277f8
call dword [0x55f0ec]
test eax, eax
je 0x4ed75d
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.004f5271
mov al, byte [esp + 0x58]
add esp, 0x14
cmp al, 0x5c
je 0x4ed6ee
cmp al, 0x2f
je 0x4ed6ee
mov ebx, dword [0x55f0c4]
push 0xc26640
lea ecx, [esp + 0x148]
push ecx
call ebx
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x148]
push eax
call dword [0x55f0f4]
lea ecx, [esp + 0x144]
push ecx
lea edx, [esp + 0x48]
push edx
call ebx
jmp 0x4ed6f4
mov ebx, dword [0x55f0c4]
lea eax, [esp + 0x248]
push eax
lea ecx, [esp + 0x450]
push ecx
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x150]
push 0xc277f8
push eax
call fcn.004f505f
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
cmp eax, 0xffffffff
je 0x4ed763
mov eax, edi
mov ecx, dword [esp + 0x650]
pop esi
pop ebx
pop edi
pop ebp
xor ecx, esp
call fcn.004f3f55
add esp, 0x644
ret
mov ebx, dword [0x55f0c4]
mov eax, dword [0x58e63c]
mov edx, eax
not edx
test dl, 1
je 0x4ed7a5
push ebp
push 0x561a48
push 2
call fcn.004f06c0
mov esi, dword [0x55f0d0]
add esp, 0xc
push edi
call esi
push eax
call dword [0x55f0cc]
push edi
call esi
push eax
call dword [0x55f0c8]
xor eax, eax
jmp 0x4ed744
mov ebx, dword [0x55f0c4]
test al, 1
je 0x4ed742
push ebp
xor esi, esi
call dword [0x55f0ec]
dec eax
mov dword [esp + 0x20], eax
inc esi
cmp esi, eax
mov dword [esp + 0x24], esi
jge 0x4ed771
mov al, byte [esi + ebp]
cmp al, 0x5c
je 0x4ed7cf
cmp al, 0x2f
jne 0x4ed8f1
lea eax, [esi + ebp + 1]
push eax
lea ecx, [esp + 0x550]
push ecx
call ebx
push ebp
lea edx, [esp + 0x34c]
push edx
call ebx
push str..bin
lea eax, [esp + esi + 0x34c]
push eax
call ebx
push 0
push 0x8000080
push 3
push 0
push 1
push 0x80000000
lea ecx, [esp + 0x360]
push ecx
call dword [0x55f150]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x4ed8eb
push 0xc277f8
call dword [0x55f0ec]
test eax, eax
je 0x4ed8eb
lea edx, [esp + 0x248]
push edx
lea eax, [esp + 0x450]
push eax
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x358]
push eax
call fcn.004f5271
mov al, byte [esp + 0x58]
add esp, 0x14
cmp al, 0x5c
je 0x4ed89e
cmp al, 0x2f
je 0x4ed89e
push 0xc26640
lea ecx, [esp + 0x148]
push ecx
call ebx
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x148]
push eax
call dword [0x55f0f4]
lea ecx, [esp + 0x144]
push ecx
lea edx, [esp + 0x48]
push edx
call ebx
lea eax, [esp + 0x248]
push eax
lea ecx, [esp + 0x450]
push ecx
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x150]
push 0xc277f8
push eax
call fcn.004f505f
add esp, 0x14
push 0
push 0x8000080
push 3
push 0
push 1
push 0x80000000
lea ecx, [esp + 0x15c]
push ecx
call dword [0x55f150]
mov dword [edi + 4], eax
cmp dword [edi + 4], 0xffffffff
jne 0x4ed917
movsx edx, byte [esi + ebp]
push edx
call fcn.004f838d
add esp, 4
test eax, eax
je 0x4ed903
inc esi
inc esi
cmp esi, dword [esp + 0x20]
mov dword [esp + 0x24], esi
jl 0x4ed7c0
jmp 0x4ed771
cmp esi, dword [esp + 0x20]
jge 0x4ed771
mov edx, dword [edi + 4]
push 0
lea eax, [esp + 0x2c]
push eax
push 0x14
lea ecx, [esp + 0x3c]
push ecx
push edx
call dword [0x55f184]
test eax, eax
je 0x4edcb7
mov eax, 8
xor ecx, ecx
jmp 0x4ed950
mov edx, dword [esp + ecx + 0x30]
cmp edx, dword [ecx + str.ESC_ARC2]
jne 0x4edcb7
sub eax, 4
add ecx, 4
cmp eax, 4
jae 0x4ed950
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 [0x55f0d8]
push eax
call dword [0x55f0d4]
mov ebx, eax
test ebx, ebx
je 0x4edbbc
mov eax, dword [edi + 4]
push 0
lea edx, [esp + 0x2c]
push edx
push ebp
push ebx
push eax
call dword [0x55f184]
test eax, eax
je 0x4edbf6
mov ecx, dword [esp + 0x10]
push ecx
push 0
call dword [0x55f0d8]
push eax
call dword [0x55f0d4]
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 [0x55f184]
test eax, eax
je 0x4edc45
shr ebp, 2
mov eax, ebx
test ebp, ebp
je 0x4eda68
jmp 0x4eda40
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 0x4eda40
mov eax, dword [esp + 0x14]
add eax, 0xffffffff
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
jns 0x4edad4
mov ebp, dword [esp + 0x1c]
mov esi, dword [0x55f0d0]
push ebp
call esi
push eax
call dword [0x55f0cc]
push ebp
call esi
mov ebp, dword [0x55f0c8]
push eax
call ebp
push ebx
call esi
push eax
call dword [0x55f0cc]
push ebx
call esi
push eax
call ebp
mov eax, dword [edi + 4]
push eax
call dword [0x55f0dc]
mov esi, dword [esp + 0x24]
mov ebx, dword [0x55f0c4]
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
jmp 0x4ed7b7
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 eax, [esp + 0x550]
push eax
call fcn.004f6195
add esp, 8
test eax, eax
jge 0x4edb09
dec esi
mov dword [esp + 0x14], esi
jmp 0x4edb10
jle 0x4edb1f
inc esi
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x10], ecx
jle 0x4edad0
jmp 0x4eda81
mov edx, dword [esp + 0x14]
cmp dword [esp + 0x10], edx
jg 0x4eda81
lea edx, [esi + esi*2]
mov ecx, dword [ebx + edx*4 + 4]
mov esi, dword [0x55f0d0]
lea eax, [ebx + edx*4]
mov dword [edi + 8], ecx
mov edx, dword [eax + 8]
push ebp
mov dword [edi + 0xc], edx
call esi
push eax
call dword [0x55f0cc]
push ebp
call esi
mov ebp, dword [0x55f0c8]
push eax
call ebp
push ebx
call esi
push eax
call dword [0x55f0cc]
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 [0x55f180]
cmp eax, 0xffffffff
jne 0x4edcac
mov edx, dword [esp + 0x18]
push edx
push 0x561a08
push 2
call fcn.004f06c0
mov eax, dword [edi + 4]
add esp, 0xc
push eax
call dword [0x55f0dc]
push edi
call esi
push eax
call dword [0x55f0cc]
push edi
call esi
push eax
call ebp
xor eax, eax
jmp 0x4ed744
push str.OpenFastFile_:
push 2
call fcn.004f06c0
mov ecx, dword [edi + 4]
add esp, 8
push ecx
call dword [0x55f0dc]
mov esi, dword [0x55f0d0]
push edi
call esi
push eax
call dword [0x55f0cc]
push edi
call esi
push eax
call dword [0x55f0c8]
xor eax, eax
jmp 0x4ed744
mov edx, dword [esp + 0x18]
push edx
push 0x5619dc
push 2
call fcn.004f06c0
mov esi, dword [0x55f0d0]
add esp, 0xc
push ebx
call esi
mov ebp, dword [0x55f0cc]
push eax
call ebp
push ebx
call esi
mov ebx, dword [0x55f0c8]
push eax
call ebx
mov eax, dword [edi + 4]
push eax
call dword [0x55f0dc]
push edi
call esi
push eax
call ebp
push edi
call esi
push eax
call ebx
xor eax, eax
jmp 0x4ed744
mov ecx, dword [esp + 0x18]
push ecx
push 0x5619dc
push 2
call fcn.004f06c0
mov edx, dword [esp + 0x28]
mov esi, dword [0x55f0d0]
add esp, 0xc
push edx
call esi
mov ebp, dword [0x55f0cc]
push eax
call ebp
mov eax, dword [esp + 0x1c]
push eax
call esi
push eax
call dword [0x55f0c8]
push ebx
call esi
push eax
call ebp
push ebx
call esi
mov ebx, dword [0x55f0c8]
push eax
call ebx
mov ecx, dword [edi + 4]
push ecx
call dword [0x55f0dc]
push edi
call esi
push eax
call ebp
push edi
call esi
push eax
call ebx
xor eax, eax
jmp 0x4ed744
mov dword [edi], 1
jmp 0x4ed742
push ebp
push 0x5619dc
push 2
call fcn.004f06c0
mov ecx, dword [edi + 4]
add esp, 0xc
push ecx
call dword [0x55f0dc]
mov esi, dword [0x55f0d0]
push edi
call esi
push eax
call dword [0x55f0cc]
push edi
call esi
push eax
call dword [0x55f0c8]
xor eax, eax
jmp 0x4ed744