Function at 0x4a6c70
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, ecx
mov dword [esp + 0x1c], edi
movzx eax, byte [esi]
cmp eax, 8
ja case.default.0x4a6c8b
jmp dword [eax*4 + 0x4a743c]
mov eax, dword [esi + 8]
mov ecx, dword [edi]
cmp dword [eax + 4], 0
mov eax, dword [ecx]
jne 0x4a6cb1
push 2
push 0x5fd75c
call dword [eax + 4]
pop edi
pop esi
add esp, 0x18
ret 0x14
cmp byte [esp + 0x28], 0
je 0x4a6e5a
push 2
push 0x5fd760
call dword [eax + 4]
mov eax, dword [esp + 0x30]
lea ecx, [edi + 0x250]
add eax, dword [esp + 0x34]
mov edx, dword [edi + 0x260]
cmp edx, eax
jae 0x4a6cef
push 0x20
lea eax, [edx + edx]
push eax
call fcn.004aac40
lea ecx, [edi + 0x250]
mov eax, dword [esi + 8]
mov dword [esp + 0x18], 0
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov esi, dword [esi]
mov dword [esp + 0x28], esi
sub eax, 1
je 0x4a6db8
nop
cmp dword [ecx + 0x14], 0xf
mov edx, dword [edi]
mov eax, dword [edx]
mov eax, dword [eax + 4]
mov dword [esp + 0xc], eax
mov eax, ecx
jbe 0x4a6d25
mov eax, dword [ecx]
mov ecx, dword [esp + 0x30]
add ecx, dword [esp + 0x34]
push ecx
push eax
mov ecx, edx
call dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
push 0x22
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax]
push dword [esp + 0x2c]
lea eax, [esi + 0x10]
mov ecx, edi
push eax
call fcn.004a7460
mov ecx, dword [edi]
push 3
push 0x5fd764
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x30]
add esi, 0x28
mov eax, dword [esp + 0x34]
add eax, ecx
push eax
push ecx
push dword [esp + 0x34]
mov ecx, edi
push 1
push esi
call fcn.004a6c70
mov ecx, dword [edi]
push 2
push 0x5fd768
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x28]
inc esi
mov dword [esp + 0x18], esi
call fcn.0042ff00
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + 8]
lea ecx, [edi + 0x250]
mov eax, dword [eax + 4]
dec eax
cmp esi, eax
mov esi, dword [esp + 0x28]
jb 0x4a6d10
cmp dword [ecx + 0x14], 0xf
mov edx, ecx
mov eax, dword [edi]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x28], eax
jbe 0x4a6dcd
mov edx, dword [ecx]
mov eax, dword [esp + 0x30]
add eax, dword [esp + 0x34]
mov edi, dword [esp + 0x1c]
push eax
push edx
mov ecx, dword [edi]
call dword [esp + 0x30]
mov ecx, dword [edi]
push 0x22
mov eax, dword [ecx]
call dword [eax]
push dword [esp + 0x2c]
lea eax, [esi + 0x10]
mov ecx, edi
push eax
call fcn.004a7460
mov ecx, dword [edi]
push 3
push 0x5fd764
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x30]
add esi, 0x28
mov eax, dword [esp + 0x34]
add eax, ecx
push eax
push ecx
push dword [esp + 0x34]
mov ecx, edi
push 1
push esi
call fcn.004a6c70
mov ecx, dword [edi]
push 0xa
mov eax, dword [ecx]
call dword [eax]
cmp dword [edi + 0x264], 0xf
lea ecx, [edi + 0x250]
mov edx, dword [edi]
mov eax, dword [edx]
jbe 0x4a6e40
mov ecx, dword [ecx]
push dword [esp + 0x34]
push ecx
mov ecx, edx
call dword [eax + 4]
mov ecx, dword [edi]
push 0x7d
mov eax, dword [ecx]
call dword [eax]
pop edi
pop esi
add esp, 0x18
ret 0x14
push 0x7b
call dword [eax]
mov eax, dword [esi + 8]
mov dword [esp + 0x18], 0
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov esi, dword [esi]
mov dword [esp + 0x28], esi
sub eax, 1
je 0x4a6eeb
nop dword [eax]
mov ecx, dword [edi]
push 0x22
mov eax, dword [ecx]
call dword [eax]
push dword [esp + 0x2c]
lea eax, [esi + 0x10]
mov ecx, edi
push eax
call fcn.004a7460
mov ecx, dword [edi]
push 2
push 0x5fd76c
mov eax, dword [ecx]
call dword [eax + 4]
push dword [esp + 0x34]
add esi, 0x28
mov ecx, edi
push dword [esp + 0x34]
push dword [esp + 0x34]
push 0
push esi
call fcn.004a6c70
mov ecx, dword [edi]
push 0x2c
mov eax, dword [ecx]
call dword [eax]
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x28]
inc esi
mov dword [esp + 0x18], esi
call fcn.0042ff00
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + 8]
mov eax, dword [eax + 4]
dec eax
cmp esi, eax
mov esi, dword [esp + 0x28]
jb 0x4a6e80
mov ecx, dword [edi]
push 0x22
mov eax, dword [ecx]
call dword [eax]
push dword [esp + 0x2c]
lea eax, [esi + 0x10]
mov ecx, edi
push eax
call fcn.004a7460
mov ecx, dword [edi]
push 2
push 0x5fd76c
mov eax, dword [ecx]
call dword [eax + 4]
push dword [esp + 0x34]
add esi, 0x28
mov ecx, edi
push dword [esp + 0x34]
push dword [esp + 0x34]
push 0
push esi
call fcn.004a6c70
mov ecx, dword [edi]
push 0x7d
mov eax, dword [ecx]
call dword [eax]
pop edi
pop esi
add esp, 0x18
ret 0x14
mov edx, dword [esi + 8]
lea eax, [esi + 8]
mov ecx, dword [edi]
mov dword [esp + 0x18], eax
mov eax, dword [edx]
cmp eax, dword [edx + 4]
mov eax, dword [ecx]
jne 0x4a6f60
push 2
push 0x5fd770
call dword [eax + 4]
pop edi
pop esi
add esp, 0x18
ret 0x14
cmp byte [esp + 0x28], 0
je 0x4a70b6
push 2
push 0x5fd774
call dword [eax + 4]
mov eax, dword [esp + 0x30]
lea ecx, [edi + 0x250]
add eax, dword [esp + 0x34]
mov edx, dword [edi + 0x260]
cmp edx, eax
jae 0x4a6fab
push 0x20
lea eax, [edx + edx]
push eax
call fcn.004aac40
mov eax, dword [esp + 0x18]
lea edx, [esi + 8]
mov dword [esp + 0x28], edx
lea ecx, [edi + 0x250]
jmp 0x4a6fb2
lea eax, [esi + 8]
mov dword [esp + 0x28], eax
mov eax, dword [eax]
mov esi, dword [eax]
mov eax, dword [eax + 4]
sub eax, 0x10
cmp esi, eax
je 0x4a703b
cmp dword [ecx + 0x14], 0xf
mov edx, dword [edi]
mov eax, dword [edx]
mov eax, dword [eax + 4]
mov dword [esp + 0xc], eax
mov eax, ecx
jbe 0x4a6fd5
mov eax, dword [ecx]
mov ecx, dword [esp + 0x30]
add ecx, dword [esp + 0x34]
push ecx
push eax
mov ecx, edx
call dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x1c]
add eax, ecx
push eax
push ecx
push dword [esp + 0x34]
mov ecx, edi
push 1
push esi
call fcn.004a6c70
mov ecx, dword [edi]
push 2
push 0x5fd768
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0x18]
lea ecx, [edi + 0x250]
add esi, 0x10
mov eax, dword [eax]
mov eax, dword [eax + 4]
sub eax, 0x10
cmp esi, eax
jne 0x4a6fc0
mov eax, dword [esp + 0x24]
lea ecx, [edi + 0x250]
add eax, 8
mov dword [esp + 0x28], eax
cmp dword [ecx + 0x14], 0xf
mov edx, ecx
mov eax, dword [edi]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x24], eax
jbe 0x4a7050
mov edx, dword [ecx]
mov esi, dword [esp + 0x30]
add esi, dword [esp + 0x34]
mov ecx, dword [edi]
push esi
push edx
call dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov ecx, edi
push esi
push dword [esp + 0x34]
mov eax, dword [eax]
push dword [esp + 0x34]
push 1
mov eax, dword [eax + 4]
sub eax, 0x10
push eax
call fcn.004a6c70
mov ecx, dword [edi]
push 0xa
mov eax, dword [ecx]
call dword [eax]
cmp dword [edi + 0x264], 0xf
lea ecx, [edi + 0x250]
mov edx, dword [edi]
mov eax, dword [edx]
jbe 0x4a709c
mov ecx, dword [ecx]
push dword [esp + 0x34]
push ecx
mov ecx, edx
call dword [eax + 4]
mov ecx, dword [edi]
push 0x5d
mov eax, dword [ecx]
call dword [eax]
pop edi
pop esi
add esp, 0x18
ret 0x14
push 0x5b
call dword [eax]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
mov ecx, dword [eax]
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
sub eax, 0x10
cmp esi, eax
mov eax, dword [esp + 0x34]
je 0x4a7107
push eax
push edx
push dword [esp + 0x34]
mov ecx, edi
push 0
push esi
call fcn.004a6c70
mov ecx, dword [edi]
push 0x2c
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [esp + 0x18]
add esi, 0x10
mov edx, dword [esp + 0x30]
mov ecx, dword [eax]
mov eax, dword [ecx + 4]
sub eax, 0x10
cmp esi, eax
mov eax, dword [esp + 0x34]
jne 0x4a70d4
push eax
mov eax, dword [ecx + 4]
mov ecx, edi
push edx
push dword [esp + 0x34]
sub eax, 0x10
push 0
push eax
call fcn.004a6c70
mov ecx, dword [edi]
push 0x5d
mov eax, dword [ecx]
call dword [eax]
pop edi
pop esi
add esp, 0x18
ret 0x14
mov ecx, dword [edi]
push 0x22
mov eax, dword [ecx]
call dword [eax]
push dword [esp + 0x2c]
mov ecx, edi
push dword [esi + 8]
call fcn.004a7460
mov ecx, dword [edi]
push 0x22
mov eax, dword [ecx]
call dword [eax]
pop edi
pop esi
add esp, 0x18
ret 0x14
cmp byte [esi + 8], 0
mov ecx, dword [edi]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
je 0x4a7171
push 4
push str.true
call eax
pop edi
pop esi
add esp, 0x18
ret 0x14
push 5
push str.false
call eax
pop edi
pop esi
add esp, 0x18
ret 0x14
mov ecx, dword [esi + 8]
mov eax, ecx
mov esi, dword [esi + 0xc]
or eax, esi
jne 0x4a719e
mov ecx, dword [edi]
push 0x30
mov eax, dword [ecx]
call dword [eax]
pop edi
pop esi
add esp, 0x18
ret 0x14
test esi, esi
jg 0x4a71af
jl 0x4a71a8
test ecx, ecx
jae 0x4a71af
mov byte [esp + 0x2b], 1
jmp 0x4a71b4
mov byte [esp + 0x2b], 0
lea eax, [edi + 8]
xor edx, edx
mov dword [esp + 0x34], edx
mov edi, ecx
mov dword [esp + 0x30], eax
push 0
push 0xa
push esi
push edi
call fcn.005b3230
mov esi, eax
mov dword [esp + 0x2c], edx
lea ecx, [esi + esi*4]
add ecx, ecx
sub edi, ecx
mov ecx, dword [esp + 0x34]
mov eax, edi
inc ecx
cdq
mov edi, esi
mov esi, dword [esp + 0x2c]
xor eax, edx
sub eax, edx
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x30]
add al, 0x30
mov byte [edx], al
inc edx
mov eax, edi
mov dword [esp + 0x30], edx
or eax, esi
jne 0x4a71c3
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x2b], al
je 0x4a7218
mov byte [ecx + edi + 8], 0x2d
inc ecx
mov dword [esp + 0x34], ecx
lea esi, [edi + 8]
lea eax, [esi + ecx]
push eax
push esi
call fcn.004f6300
mov ecx, dword [edi]
add esp, 8
mov edx, dword [esp + 0x34]
mov eax, dword [ecx]
push edx
push esi
call dword [eax + 4]
pop edi
pop esi
add esp, 0x18
ret 0x14
mov edx, dword [esi + 8]
mov eax, edx
mov ecx, dword [esi + 0xc]
or eax, ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x28], ecx
je 0x4a718e
xor edx, edx
add edi, 8
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x34]
mov dword [esp + 0x30], edx
mov eax, edi
mov edx, 0xcccccccd
mul edx
mov eax, edi
mov esi, edx
mov edx, 0xcccccccc
mul edx
mov edi, eax
mov dword [esp + 0xc], edx
mov eax, ecx
mov ecx, 0xcccccccd
mul ecx
mov ecx, eax
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x28]
mov edx, 0xcccccccc
mul edx
add ecx, esi
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
adc edx, 0
add edi, ecx
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0xc]
adc ecx, 0
mov edi, dword [esp + 0x2c]
xor eax, eax
add edx, ecx
mov ecx, dword [esp + 0x10]
adc eax, eax
add ecx, edx
mov edx, dword [esp + 0x34]
adc esi, eax
shrd ecx, esi, 3
shr esi, 3
mov dword [esp + 0x28], esi
lea eax, [ecx + ecx*4]
add eax, eax
sub edx, eax
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x30]
add al, 0x30
inc edx
mov byte [edi], al
inc edi
mov dword [esp + 0x2c], edi
mov edi, ecx
mov eax, edi
mov dword [esp + 0x30], edx
or eax, esi
mov dword [esp + 0x34], edi
mov ecx, esi
jne 0x4a7266
mov edi, dword [esp + 0x1c]
lea esi, [edi + 8]
lea eax, [esi + edx]
push eax
push esi
call fcn.004f6300
mov ecx, dword [edi]
add esp, 8
mov edx, dword [esp + 0x30]
mov eax, dword [ecx]
push edx
push esi
call dword [eax + 4]
pop edi
pop esi
add esp, 0x18
ret 0x14
movsd xmm0, qword [esi + 8]
sub esp, 8
movsd qword [esp + 0x10], xmm0
fld qword [esp + 0x10]
fstp qword [esp]
call fcn.005c3251
add esp, 8
test ax, ax
jg case.0x4a6c8b.24
movsd xmm0, qword [esp + 8]
lea esi, [edi + 8]
sub esp, 8
movsd qword [esp], xmm0
call fcn.005c3262
movsd xmm0, qword [esp + 0x10]
add esp, 8
test eax, eax
je 0x4a738b
xorps xmm0, xmmword [0x5f3230]
lea esi, [edi + 9]
mov byte [edi + 8], 0x2d
ucomisd xmm0, qword [0x5eea98]
lahf
test ah, 0x44
jp 0x4a73bb
mov word [esi], 0x2e30
lea eax, [edi + 8]
mov byte [esi + 2], 0x30
add esi, 3
mov ecx, dword [edi]
sub esi, eax
push esi
push eax
mov edx, dword [ecx]
call dword [edx + 4]
pop edi
pop esi
add esp, 0x18
ret 0x14
sub esp, 8
mov dword [esp + 0x3c], 0
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0
movsd qword [esp], xmm0
push eax
lea eax, [esp + 0x40]
push eax
push esi
call fcn.0047a9f0
push 0xf
push 0xfffffffffffffffc
push dword [esp + 0x44]
push dword [esp + 0x54]
push esi
call fcn.004a86f0
mov ecx, dword [edi]
add esp, 0x28
mov esi, eax
lea eax, [edi + 8]
sub esi, eax
mov edx, dword [ecx]
push esi
push eax
call dword [edx + 4]
pop edi
pop esi
add esp, 0x18
ret 0x14
mov ecx, dword [edi]
push 0xb
push str._discarded_
mov eax, dword [ecx]
call dword [eax + 4]
pop edi
pop esi
add esp, 0x18
ret 0x14
mov ecx, dword [edi]
push 4
push str.null
mov eax, dword [ecx]
call dword [eax + 4]
pop edi
pop esi
add esp, 0x18
ret 0x14