Function at 0x4640f5
Capabilities:
Encode data using xor

Disassembly:
jmp 0x4640f0
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x48]
push edi
lea edx, [esp + 0x24]
push edx
call eax
cmp dword [esi + 0x14], 0
mov edi, dword [esi + 0x70]
push 0
push 0
push 0
push 0
push 3
je 0x46438b
mov ecx, dword [esi + 0x24]
mov ebx, dword [esi + 0x24]
add ecx, edi
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 0x168]
movsx eax, word [edx + 0xb8]
cdq
xor eax, edx
sub eax, edx
mov edx, ebx
sub edx, edi
add edx, dword [esi + 0x2c]
sub edx, eax
mov eax, dword [esi + 0x28]
mov dword [esp + 0x30], edx
lea edx, [eax + edi]
mov dword [esp + 0x34], edx
mov edx, dword [esi + 0x58]
sub edx, 1
neg edx
push eax
sbb edx, edx
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x10]
push ebx
and edx, 0xfffffff0
push eax
add edx, 0x18
push edx
call fcn.004a50b0
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x10]
push 0
push 0
push 0
push 0
push 3
push eax
mov eax, dword [esi + 0x58]
sub ecx, edi
add ecx, dword [esi + 0x2c]
sub eax, 2
neg eax
sbb eax, eax
push ecx
mov ecx, dword [esi + 4]
and eax, 0xfffffff0
push edx
add eax, 0x19
push eax
call fcn.004a50b0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x10]
push 0
push 0
push 0
push 0
push 3
push ecx
mov ecx, dword [esi + 4]
push edx
push eax
push 0xd
call fcn.004a50b0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 0x10]
push 0
push 0
push 0
push 0
push 3
push ecx
mov ecx, dword [esi + 4]
push edx
push eax
push 0xf
call fcn.004a50b0
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [esp + 0x14]
jle 0x4645e5
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x40]
lea eax, [esp + 0x14]
push eax
call edx
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x168]
movsx eax, word [eax + 0xa0]
mov ebp, dword [esp + 0x1c]
cdq
mov ebx, eax
xor ebx, edx
sub ebx, edx
add ebx, dword [esp + 0x14]
cmp ebx, ebp
jge 0x464266
nop
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0x10]
push 0
push 0
push 0
push 0
push 3
push edx
push ebx
push eax
push 0xe
call fcn.004a50b0
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 0x168]
movsx eax, word [edx + 0xac]
cdq
xor eax, edx
sub eax, edx
add ebx, eax
cmp ebx, ebp
jl 0x464230
cmp dword [esi + 0x18], 0
jne 0x4645e5
cmp dword [esi + 0x58], 5
mov ebx, 8
mov dword [esp + 0x10], ebx
jne 0x464288
mov ebx, 0x18
mov dword [esp + 0x10], ebx
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
lea edx, [esp + 0x24]
push edx
call eax
mov ebp, dword [esi + 0x24]
mov ecx, dword [esi + 0x50]
mov eax, dword [esi + 4]
add ecx, ebp
add ecx, edi
mov dword [esp + 0x14], ecx
mov edx, dword [eax + 0x168]
lea ebx, [ebx + ebx*2]
add ebx, ebx
add ebx, ebx
movsx eax, word [edx + ebx + 0x34]
cdq
xor eax, edx
push 0
sub eax, edx
mov edx, dword [esi + 0x54]
push 0
push 0
add edx, ebp
mov ebp, dword [esp + 0x1c]
push 0
add edx, edi
sub edx, eax
mov eax, dword [esp + 0x28]
push 3
push eax
push ecx
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x38], edx
push ecx
mov ecx, dword [esi + 4]
lea edx, [ebp + 2]
push edx
call fcn.004a50b0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 0x10]
push 0
push 0
push 0
push 0
push 3
push eax
push ecx
mov ecx, dword [esi + 4]
push edx
lea eax, [ebp + 4]
push eax
call fcn.004a50b0
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x40]
lea eax, [esp + 0x14]
push eax
call edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 0x168]
mov dword [esp + 0x10], eax
movsx eax, word [edx + ebx + 0x1c]
cdq
mov edi, eax
xor edi, edx
sub edi, edx
add edi, dword [esp + 0x14]
cmp edi, dword [esp + 0x1c]
jge 0x4645e5
add ebp, 3
mov eax, dword [esp + 0x18]
mov edx, dword [esi + 0x10]
push 0
push 0
push 0
push 0
push 3
push eax
push edi
push edx
push ebp
call fcn.004a50b0
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x168]
movsx eax, word [eax + ebx + 0x28]
cdq
xor eax, edx
sub eax, edx
add edi, eax
cmp edi, dword [esp + 0x10]
jl 0x464351
jmp 0x4645e5
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x28]
mov ebx, dword [esi + 0x28]
mov dword [esp + 0x28], eax
add eax, edi
mov dword [esp + 0x30], eax
add ecx, edi
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 0x168]
movsx eax, word [edx + 0x5a]
cdq
xor eax, edx
sub eax, edx
mov edx, ebx
sub edx, edi
add edx, dword [esi + 0x2c]
push ebx
sub edx, eax
mov eax, dword [esi + 0x24]
push eax
mov eax, dword [esi + 0x58]
sub eax, 1
neg eax
sbb eax, eax
mov dword [esp + 0x3c], edx
mov edx, dword [esi + 0x10]
and eax, 0xfffffff0
push edx
add eax, 0x10
push eax
call fcn.004a50b0
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x10]
push 0
push 0
sub ecx, edi
add ecx, dword [esi + 0x28]
push 0
push 0
push 3
push ecx
mov ecx, dword [esi + 0x58]
sub ecx, 2
neg ecx
sbb ecx, ecx
push edx
and ecx, 0xfffffff0
add ecx, 0x11
push eax
push ecx
mov ecx, dword [esi + 4]
call fcn.004a50b0
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x10]
push 0
push 0
push 0
push 0
push 3
push edx
push eax
push ecx
mov ecx, dword [esi + 4]
push 5
call fcn.004a50b0
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x10]
push 0
push 0
push 0
push 0
push 3
push edx
push eax
push ecx
mov ecx, dword [esi + 4]
push 7
call fcn.004a50b0
mov edx, dword [esp + 0x20]
cmp edx, dword [esp + 0x18]
jle 0x4645e5
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
lea edx, [esp + 0x14]
push edx
call eax
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 0x168]
movsx eax, word [edx + 0x42]
mov ebp, dword [esp + 0x20]
cdq
mov ebx, eax
xor ebx, edx
sub ebx, edx
add ebx, dword [esp + 0x18]
cmp ebx, ebp
jge 0x4644ca
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 0x10]
push 0
push 0
push 0
push 0
push 3
push ebx
push eax
push edx
push 6
call fcn.004a50b0
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x168]
movsx eax, word [eax + 0x4e]
cdq
xor eax, edx
sub eax, edx
add ebx, eax
cmp ebx, ebp
jl 0x464497
cmp dword [esi + 0x18], 0
jne 0x4645e5
xor ebx, ebx
cmp dword [esi + 0x58], 5
mov dword [esp + 0x10], ebx
jne 0x4644e9
mov ebx, 0x10
mov dword [esp + 0x10], ebx
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x40]
lea eax, [esp + 0x24]
push eax
call edx
mov ebp, dword [esi + 0x28]
mov ecx, dword [esi + 0x50]
mov eax, dword [esi + 4]
add ecx, ebp
add ecx, edi
mov dword [esp + 0x18], ecx
mov eax, dword [eax + 0x168]
lea ebx, [ebx + ebx*2]
add ebx, ebx
add ebx, ebx
movsx eax, word [eax + ebx + 0x36]
push 0
cdq
xor eax, edx
push 0
sub eax, edx
mov edx, dword [esi + 0x54]
push 0
add edx, ebp
mov ebp, dword [esp + 0x1c]
push 0
push 3
add edx, edi
push ecx
mov ecx, dword [esi + 0x10]
sub edx, eax
mov eax, dword [esp + 0x2c]
push eax
mov dword [esp + 0x3c], edx
push ecx
mov ecx, dword [esi + 4]
lea edx, [ebp + 2]
push edx
call fcn.004a50b0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x10]
push 0
push 0
push 0
push 0
push 3
push eax
push ecx
mov ecx, dword [esi + 4]
push edx
lea eax, [ebp + 4]
push eax
call fcn.004a50b0
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x40]
lea eax, [esp + 0x14]
push eax
call edx
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 0x168]
mov dword [esp + 0x10], eax
movsx eax, word [edx + ebx + 0x1e]
cdq
mov edi, eax
xor edi, edx
sub edi, edx
add edi, dword [esp + 0x18]
cmp edi, dword [esp + 0x20]
jge 0x4645e5
add ebp, 3
mov edi, edi
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 0x10]
push 0
push 0
push 0
push 0
push 3
push edi
push eax
push edx
push ebp
call fcn.004a50b0
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x168]
movsx eax, word [eax + ebx + 0x2a]
cdq
xor eax, edx
sub eax, edx
add edi, eax
cmp edi, dword [esp + 0x10]
jl 0x4645b0
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x40]
lea eax, [esp + 0x24]
push eax
call edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret