Function at 0x49dd40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax + 0xc]
xor ebx, ebx
push edi
mov eax, esi
mov dword [esp + 0x10], ebx
call fcn.00481cd0
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x24], eax
cmp dword [esi + 0x10], eax
jg 0x49dd7e
mov edi, esi
call fcn.004819b0
test eax, eax
jne 0x49ddab
mov eax, dword [esp + 0x24]
mov edx, dword [esi + 0x14]
inc dword [esi + 0xc]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 0x14]
mov byte [eax + 3], bl
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov word [eax], 0x33
mov byte [esi + 0x62], bl
mov edx, dword [ebp + 8]
mov eax, dword [edx]
test dword [eax + 0xc], 0x4000000
mov edi, dword [ebp + 0xc]
je 0x49ddcc
mov ecx, edi
call fcn.004a2390
test eax, eax
jne 0x49ddd5
cmp dword [edi + 0x24], ebx
jne 0x49ddd5
cmp dword [ebp + 0x1c], ebx
je 0x49df80
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x1c]
push ecx
push edi
push 3
push ebx
push ebx
push edx
call fcn.004b4f70
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 8]
push edi
push eax
call fcn.004a2b10
or dword [esp + 0x38], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x48]
lea edx, [eax + 1]
mov dword [esp + 0x30], edx
mov edx, dword [edi + 0xc]
lea eax, [edx + eax + 1]
mov dword [ecx + 0x48], eax
mov eax, dword [esi + 0xc]
add esp, 0x20
mov dword [esp + 0x24], eax
cmp dword [esi + 0x10], eax
jg 0x49de34
mov edi, esi
call fcn.004819b0
mov edi, dword [ebp + 0xc]
test eax, eax
jne 0x49de5e
mov eax, dword [esp + 0x24]
mov edx, dword [esi + 0x14]
inc dword [esi + 0xc]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov ecx, dword [ebp + 0x14]
mov edx, dword [esp + 0x10]
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov word [eax], 0xe
mov byte [esi + 0x62], bl
xor ecx, ecx
mov dword [esp + 0x1c], ecx
cmp dword [edi + 0xc], ebx
jle 0x49deff
lea ecx, [ecx]
cmp dword [esp + 0x18], 0xffffffff
je 0x49de84
mov eax, 1
shl eax, cl
test dword [esp + 0x18], eax
je 0x49def1
mov edx, dword [esp + 0x10]
lea eax, [ecx + edx + 1]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x24], eax
cmp dword [esi + 0x10], eax
jg 0x49deb2
mov edi, esi
call fcn.004819b0
mov edi, dword [ebp + 0xc]
mov ecx, dword [esp + 0x1c]
test eax, eax
jne 0x49dedc
mov eax, dword [esp + 0x24]
inc dword [esi + 0xc]
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x14]
lea eax, [eax + edx*4]
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x20]
mov byte [eax + 3], bl
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ebx
mov word [eax], 0x1c
mov byte [esi + 0x62], bl
mov eax, dword [esp + 0x20]
push eax
push edi
push esi
mov eax, ecx
call fcn.004b5040
mov ecx, dword [esp + 0x28]
add esp, 0xc
inc ecx
mov dword [esp + 0x1c], ecx
cmp ecx, dword [edi + 0xc]
jl 0x49de70
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 0x20]
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp + 8]
push eax
push edi
push 1
push ebx
push 0x6a
push ecx
push edx
call fcn.004b4f00
mov eax, dword [esi + 0xc]
add esp, 0x24
mov dword [esp + 0x24], eax
cmp dword [esi + 0x10], eax
jg 0x49df41
mov edi, esi
call fcn.004819b0
mov edi, dword [ebp + 0xc]
test eax, eax
jne 0x49df6e
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 0x14]
inc dword [esi + 0xc]
mov edx, dword [ebp + 0x10]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], edx
mov edx, dword [ebp + 0x14]
mov byte [eax + 3], bl
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ebx
mov word [eax], 0x33
mov byte [esi + 0x62], bl
mov eax, dword [esp + 0x10]
push ebx
push eax
mov eax, dword [ebp + 8]
push edi
call fcn.004a2580
add esp, 0xc
cmp dword [edi + 0x1c], ebx
jne 0x49e04c
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
push ebx
push ecx
push edx
mov eax, edi
call fcn.0049e180
mov eax, dword [esi + 0xc]
add esp, 0xc
mov dword [esp + 0x24], eax
cmp dword [esi + 0x10], eax
jg 0x49dfba
mov edi, esi
call fcn.004819b0
mov edi, dword [ebp + 0xc]
test eax, eax
jne 0x49dfe8
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 0x14]
inc dword [esi + 0xc]
mov edx, dword [ebp + 0x10]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
xor ecx, ecx
cmp dword [ebp + 0x18], ebx
mov byte [eax + 3], bl
setne cl
mov dword [eax + 4], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov word [eax], 0x38
mov dword [eax + 8], ecx
mov byte [esi + 0x62], bl
cmp dword [ebp + 0x18], ebx
je 0x49e04c
mov ecx, dword [edi + 4]
mov edx, dword [esi + 0x14]
mov edi, dword [esi]
mov dword [esp + 0x20], ecx
cmp edx, ebx
je 0x49e03f
cmp byte [edi + 0x1e], bl
jne 0x49e03f
mov eax, dword [esi + 0xc]
lea eax, [eax + eax*4 - 5]
lea ecx, [edx + eax*4]
movsx eax, byte [ecx + 1]
mov dword [esp + 0x24], ecx
mov ecx, dword [ecx + 0x10]
call fcn.00481f50
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov edi, dword [ebp + 0xc]
mov dword [eax + 0x10], ebx
cmp ecx, ebx
jne 0x49e036
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
jmp 0x49e04c
mov dword [eax + 0x10], ecx
mov byte [eax + 1], 0xfe
jmp 0x49e04c
mov eax, 0xfffffffe
call fcn.00481f50
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
test dword [edx + 0xc], 0x4000000
je 0x49e13c
mov edx, dword [edi + 4]
mov eax, edx
cmp edx, ebx
jne 0x49e06f
xor ecx, ecx
mov dword [esp + 0x18], ecx
jmp 0x49e085
cmp byte [edx], bl
je 0x49e078
inc eax
cmp byte [eax], bl
jne 0x49e073
sub eax, edx
and eax, 0x3fffffff
mov ecx, eax
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x44]
add eax, 0x34
mov dword [esp + 0x24], eax
cmp dword [eax + 0xc], ebx
je 0x49e0df
xor eax, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
cmp ecx, ebx
jle 0x49e0cd
movzx ecx, byte [edx]
movzx edx, byte [ecx + 0x58e240]
lea ecx, [eax*8]
xor edx, ecx
mov ecx, dword [esp + 0x1c]
xor eax, edx
mov edx, dword [esp + 0x20]
dec ecx
inc edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], ecx
cmp ecx, ebx
jg 0x49e0a2
mov ecx, dword [esp + 0x24]
xor edx, edx
div dword [ecx]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
jmp 0x49e0e1
xor edx, edx
push ecx
mov ecx, dword [edi + 4]
push ecx
call fcn.0046f680
add esp, 8
cmp eax, ebx
je 0x49e13c
mov eax, dword [eax + 8]
mov dword [esp + 0x1c], eax
cmp eax, ebx
je 0x49e13c
jmp 0x49e104
mov eax, dword [esp + 0x1c]
mov edx, dword [ebp + 8]
push ebx
push eax
push edi
push edx
call fcn.004a2e70
add esp, 0x10
cmp eax, ebx
je 0x49e12d
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 8]
push ebx
push 2
push ecx
push edi
push eax
push edx
call fcn.004b4dc0
add esp, 0x18
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x1c], eax
cmp eax, ebx
jne 0x49e100
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 0x20]
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp + 8]
push eax
push edi
push 2
push ebx
push 0x6a
push ecx
push edx
call fcn.004b4f00
mov eax, dword [esi + 0x20]
add esp, 0x24
cmp eax, ebx
je 0x49e179
mov ecx, dword [esp + 0x14]
lea edx, [ecx*4 + 4]
mov ecx, dword [esi + 0xc]
sub eax, edx
mov dword [eax], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret