Function at 0x4a3e60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
test ebx, ebx
jne 0x4a3e7d
lea eax, [edi - 0x66]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [ebx + 0x9c]
test esi, esi
jne 0x4a3e92
lea eax, [esi - 0x66]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi], edi
jne 0x4a3ea2
pop esi
pop edi
mov eax, 0xffffff9c
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x10]
test edx, edx
jne 0x4a3eb2
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x5c]
mov dword [esi + 0x14], edx
cmp edx, eax
jbe 0x4a3ecd
cmp dword [esi + 0x8c], edi
jne 0x4a3ecd
mov dword [esi + 0x14], eax
mov eax, dword [esi + 8]
add eax, dword [esi + 0x58]
cmp edx, eax
jbe 0x4a3ee2
cmp dword [esi + 0x8c], edi
je 0x4a3ee2
mov dword [esi + 0x14], eax
cmp dword [esi + 0x14], edi
jbe 0x4a40bb
jmp 0x4a3ef0
cmp dword [esi + 8], 0
jne 0x4a3fc4
mov eax, dword [esi + 0x58]
test eax, eax
je 0x4a3fc4
mov edi, 0x4000
cmp eax, edi
push 0
cmovb edi, eax
mov eax, dword [esi + 0x88]
add eax, dword [esi + 0x3c]
push eax
push dword [esi + 0x80]
mov eax, dword [esi + 0x70]
push dword [esi + 0x7c]
call eax
add esp, 0x10
test eax, eax
jne 0x4a40a4
mov eax, dword [esi + 0x64]
push edi
push dword [esi]
push dword [esi + 0x80]
push dword [esi + 0x7c]
call eax
add esp, 0x10
cmp eax, edi
jne 0x4a40a4
cmp dword [ebx + 0xa0], 0
je 0x4a3fb6
xor edx, edx
mov dword [ebp - 8], edx
test edi, edi
je 0x4a3fb6
mov ecx, dword [ebx + 0xac]
add edx, dword [esi]
and ecx, 0xfffd
or ecx, 2
mov ebx, ecx
xor ebx, 1
movsx eax, byte [edx]
imul ebx, ecx
shr ebx, 8
and ebx, 0xff
xor ebx, eax
mov byte [edx], bl
movsx eax, bl
mov ebx, dword [ebp + 8]
push eax
mov edx, dword [ebx + 0xb0]
lea ecx, [ebx + 0xa4]
call fcn.004a2e30
mov edx, dword [ebp - 8]
add esp, 4
mov ecx, dword [esi]
mov byte [edx + ecx], al
inc edx
mov dword [ebp - 8], edx
cmp edx, edi
jb 0x4a3f62
add dword [esi + 0x3c], edi
mov eax, dword [esi]
sub dword [esi + 0x58], edi
mov dword [esi + 4], eax
mov dword [esi + 8], edi
cmp dword [esi + 0x84], 0
je 0x4a4038
cmp dword [esi + 0x8c], 0
jne 0x4a4038
mov eax, dword [esi + 0x18]
lea ecx, [esi + 4]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0xc], eax
call fcn.0049f960
mov edi, eax
test edi, edi
js 0x4a3ffc
cmp dword [esi + 0x1c], 0
mov eax, 0xfffffffd
cmovne edi, eax
mov ebx, dword [esi + 0x18]
sub ebx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4a4017
mov ecx, dword [esi + 0x50]
mov edx, eax
push ebx
call fcn.0049e2d0
add esp, 4
sub dword [esi + 0x5c], ebx
mov dword [esi + 0x50], eax
mov eax, dword [ebp - 4]
add eax, ebx
mov dword [ebp - 4], eax
cmp edi, 1
je 0x4a40bd
test edi, edi
jne 0x4a40bb
jmp 0x4a4096
mov edi, dword [esi + 8]
test edi, edi
jne 0x4a4044
cmp dword [esi + 0x58], edi
je 0x4a40ae
cmp dword [esi + 0x14], edi
cmovb edi, dword [esi + 0x14]
xor edx, edx
test edi, edi
je 0x4a4062
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x10]
mov al, byte [edx + eax]
mov byte [edx + ecx], al
inc edx
cmp edx, edi
jb 0x4a4051
mov ebx, dword [esi + 0x10]
test ebx, ebx
jne 0x4a406d
xor eax, eax
jmp 0x4a407b
mov ecx, dword [esi + 0x50]
mov edx, ebx
push edi
call fcn.0049e2d0
add esp, 4
sub dword [esi + 0x5c], edi
sub dword [esi + 8], edi
sub dword [esi + 0x14], edi
add dword [esi + 4], edi
add dword [esi + 0x18], edi
add dword [ebp - 4], edi
mov dword [esi + 0x50], eax
lea eax, [ebx + edi]
mov dword [esi + 0x10], eax
cmp dword [esi + 0x14], 0
jbe 0x4a40b8
mov ebx, dword [ebp + 8]
jmp 0x4a3ef0
pop esi
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 4]
mov eax, edi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret