Function at 0x4de490
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov ebx, ecx
mov eax, dword [ebx + 0x5c]
xor ebp, ebp
cmp eax, ebp
push esi
push edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
jne 0x4de2ff
cmp dword [ebx + 0x60], ebp
je 0x4de31b
mov eax, dword [ebx + 0x28]
mov esi, 1
push esi
push eax
mov eax, dword [ebx + 0x24]
mov ecx, dword [eax + 0x950]
call fcn.004e7a60
test eax, eax
je 0x4de31d
xor esi, esi
mov edi, dword [ebx + 0x64]
push edi
mov dword [esp + 0x24], edi
call dword [0x53d2c8]
mov ecx, dword [ebx + 0x64]
mov edx, dword [ebx + 0x4c]
cmp edx, dword [ecx + 0x40]
je 0x4de346
mov ecx, ebx
call fcn.004ddfc0
mov eax, dword [ebx + 0x64]
mov ecx, dword [eax + 0x40]
mov dword [ebx + 0x4c], ecx
cmp esi, ebp
mov ecx, ebx
je 0x4de7b5
call fcn.004dd780
mov edx, dword [ebx + 0x64]
push edx
lea ecx, [esp + 0x28]
call fcn.004dc810
cmp dword [esp + 0x24], ebp
je 0x4de7ba
mov eax, dword [ebx + 0x64]
mov ecx, dword [eax + 0x78]
cmp ecx, dword [ebx + 0x38]
jbe 0x4de3cd
cmp dword [eax + 0x7c], ebp
je 0x4de3cd
mov dword [ebx + 0x38], ecx
cmp dword [ebx + 0x5c], ebp
je 0x4de389
cmp dword [eax + 0x34], ebp
jne 0x4de3e9
mov esi, dword [ebx + 0x60]
cmp esi, ebp
mov byte [esp + 0x10], 0
je 0x4de3ee
mov eax, dword [esi + 4]
cmp word [eax + 8], 2
jne 0x4de3c5
mov ecx, dword [eax + 0x4c]
call fcn.004fd300
test al, al
jne 0x4de3bd
mov ecx, dword [esi + 4]
add ecx, 0x1c0
call fcn.004f29e0
test al, al
je 0x4de3c5
mov eax, dword [esi + 4]
cmp dword [eax + 0xc], ebp
jne 0x4de3e9
mov esi, dword [esi]
cmp esi, ebp
jne 0x4de395
jmp 0x4de3ee
lea ecx, [esp + 0x24]
call fcn.004dc870
push edi
call dword [0x53d2c4]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret 8
mov byte [esp + 0x10], 1
mov ecx, dword [ebx + 0x64]
mov edx, dword [ecx + 0x28]
mov edi, 0x64
xor eax, eax
cmp edx, edi
je 0x4de412
mov ecx, dword [ebx + 0x28]
push 0x549280
call fcn.0048c060
neg eax
sbb eax, eax
neg eax
mov cl, byte [esp + 0x10]
test cl, cl
jne 0x4de422
cmp eax, ebp
je 0x4de6cf
mov ecx, ebx
call fcn.004dcaf0
mov edx, dword [esp + 0x10]
mov eax, dword [ebx + 0x64]
mov dword [esp + 0x14], 0xffffffff
mov ecx, dword [eax + 0x7c]
push edx
push ecx
mov ecx, dword [ebx + 0x50]
call fcn.004836d0
mov esi, dword [ebx + 0x60]
cmp esi, ebp
je 0x4de60c
mov eax, dword [esi + 4]
cmp word [eax + 8], 2
jne 0x4de5fd
mov ecx, dword [eax + 0x4c]
call fcn.004fd300
test al, al
jne 0x4de480
mov ecx, dword [esi + 4]
add ecx, 0x1c0
call fcn.004f29e0
test al, al
je 0x4de5fd
mov eax, dword [esi + 4]
cmp dword [eax + 0xc], ebp
je 0x4de5fd
cmp dword [eax + 0xe8], ebp
jne 0x4de4b6
push 0x50
call fcn.0052b380
add esp, 4
cmp eax, ebp
je 0x4de4ab
mov ecx, eax
call fcn.004836e0
jmp 0x4de4ad
xor eax, eax
mov edx, dword [esi + 4]
mov dword [edx + 0xe8], eax
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0xe8]
mov edx, dword [ecx]
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebx + 0x50]
push eax
call dword [edx + 8]
mov edi, eax
cmp edi, ebp
je 0x4de5fd
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 0xc]
push edx
mov ecx, edi
call fcn.004ff0a0
movzx ecx, byte [edi + 0xd]
movzx edx, byte [edi + 0xe]
xor eax, eax
mov ah, byte [edi + 0xf]
mov al, byte [edi + 0xc]
shl eax, 8
or eax, ecx
mov ecx, dword [esi + 4]
shl eax, 8
or eax, edx
push eax
add ecx, 0x318
call fcn.004f2d00
push eax
mov ecx, edi
call fcn.004ff070
mov eax, dword [esi + 4]
cmp dword [eax + 0xf0], 1
jne 0x4de594
mov ecx, dword [eax + 0xec]
test ecx, ecx
jle 0x4de587
push 0x18
call fcn.0052b380
add esp, 4
test eax, eax
je 0x4de547
push 1
mov ecx, eax
call fcn.004fefc0
mov ebp, eax
jmp 0x4de549
xor ebp, ebp
push 1
mov ecx, ebp
call fcn.004ff050
mov ecx, edi
mov byte [ebp + 8], 9
call fcn.004dc390
mov ecx, dword [esi + 4]
add eax, dword [ecx + 0xec]
push eax
mov ecx, ebp
call fcn.004ff070
mov edx, dword [ebx + 0x64]
mov cl, byte [edx + 0x38]
mov eax, dword [ebp + 0x14]
mov byte [eax], cl
mov edx, dword [esi + 4]
mov eax, dword [edx + 0xc]
push eax
mov ecx, ebp
call fcn.004ff0a0
mov ecx, dword [esi + 4]
mov dword [ecx + 0xf0], 2
mov ecx, dword [esi + 4]
add ecx, 0x1c0
call fcn.004f29e0
test al, al
je 0x4de5ca
mov ecx, dword [esi + 4]
push edi
add ecx, 0x1c0
call fcn.004f6520
test ebp, ebp
je 0x4de5f1
mov ecx, dword [esi + 4]
push ebp
add ecx, 0x1c0
call fcn.004f6520
jmp 0x4de5f1
mov edx, dword [esi + 4]
mov ecx, dword [edx + 0x4c]
call fcn.004fd2e0
mov ecx, dword [esi + 4]
push edi
add ecx, 0x4c
call fcn.004e1d50
test ebp, ebp
je 0x4de5f1
mov ecx, dword [esi + 4]
push ebp
add ecx, 0x4c
call fcn.004e1d50
mov ecx, dword [esi + 4]
push 1
call fcn.004f3470
xor ebp, ebp
mov esi, dword [esi]
cmp esi, ebp
jne 0x4de450
mov edi, 0x64
cmp dword [ebx + 0x54], ebp
jne 0x4de618
cmp dword [esp + 0x14], 0xffffffff
jne 0x4de677
cmp dword [ebx + 0x58], ebp
jne 0x4de639
push 0x50
call fcn.0052b380
add esp, 4
cmp eax, ebp
je 0x4de634
mov ecx, eax
call fcn.004836e0
jmp 0x4de636
xor eax, eax
mov dword [ebx + 0x58], eax
mov ecx, dword [ebx + 0x58]
mov eax, dword [ecx]
lea edx, [esp + 0x14]
push edx
mov edx, dword [ebx + 0x50]
push edx
call dword [eax + 8]
mov esi, eax
cmp dword [ebx + 0x54], ebp
je 0x4de663
cmp esi, ebp
mov dword [esp + 0x1c], esi
jne 0x4de677
mov dword [esp + 0x18], 1
jmp 0x4de677
cmp esi, ebp
je 0x4de677
mov ecx, esi
call fcn.004ff020
push esi
call fcn.00439d00
add esp, 4
mov edx, dword [esp + 0x14]
mov ecx, edi
sub ecx, edx
imul ecx, ecx, 0x64
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, edi
mov dword [ebx + 0x3c], eax
jle 0x4de69f
mov dword [ebx + 0x3c], edi
cmp dword [ebx + 0x3c], ebp
jge 0x4de6a7
mov dword [ebx + 0x3c], ebp
mov eax, dword [ebx + 0x64]
cmp dword [eax + 0x28], edi
je 0x4de6cf
mov ecx, dword [esp + 0x30]
mov dword [ecx], 1
mov edx, dword [ebx + 0x64]
mov esi, dword [edx + 0x28]
mov eax, dword [ebx + 0x3c]
mov edx, dword [esp + 0x34]
xor ecx, ecx
cmp eax, esi
setge cl
mov dword [edx], ecx
lea esi, [ebx + 0x60]
mov edi, 2
mov eax, dword [esi]
cmp eax, ebp
je 0x4de6f1
lea ecx, [ecx]
mov ecx, dword [eax + 4]
cmp dword [ecx + 0xf0], edi
je 0x4de72d
mov eax, dword [eax]
cmp eax, ebp
jne 0x4de6e0
cmp dword [esp + 0x18], ebp
je 0x4de743
mov edi, dword [esp + 0x28]
lea esi, [edi + 0x84]
push esi
call dword [0x53d2c8]
push esi
mov esi, dword [0x53d2c4]
mov dword [edi + 0x9c], ebp
call esi
mov ecx, dword [esp + 0x20]
push ecx
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret 8
mov edx, dword [eax + 4]
mov dword [edx + 0xf0], ebp
mov eax, dword [eax + 4]
push eax
mov ecx, esi
call fcn.004deaf0
jmp 0x4de6d7
mov esi, dword [esp + 0x1c]
cmp esi, ebp
je 0x4de75e
movzx edx, byte [esi + 0xb]
xor eax, eax
mov ah, byte [esi + 9]
mov al, byte [esi + 0xa]
shl eax, 8
or eax, edx
jmp 0x4de763
mov eax, 1
mov ecx, dword [ebx + 0x64]
fld qword [ecx + 0x58]
sub esp, 8
fstp qword [esp]
push eax
lea ecx, [ebx + 0x40]
call fcn.004dc3c0
push esi
mov ecx, ebx
call fcn.004dd2c0
mov ebx, dword [esp + 0x28]
lea esi, [ebx + 0x84]
push esi
mov edi, eax
call dword [0x53d2c8]
push esi
mov esi, dword [0x53d2c4]
mov dword [ebx + 0x9c], ebp
call esi
mov edx, dword [esp + 0x20]
push edx
call esi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
call fcn.004ddfc0
push edi
call dword [0x53d2c4]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret 8