Function at 0x4122ec
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov esi, dword [esp + 0x34]
mov ebp, dword [esp + 0x28]
mov eax, dword [0x48d078]
cmp eax, 0x35c39f4c
jl 0x412311
or dword [0x48b1f8], 0x1177ec46
and dword [0x48d86c], 0x6620280
mov eax, dword [0x48da5c]
lea ecx, [eax + 1]
mov dword [0x48da5c], ecx
mov ecx, 0xd9ca711e
sub ecx, eax
add dword [0x48fdfc], ecx
mov eax, dword [esi + 4]
shl eax, 2
push eax
push dword [esi + 8]
call fcn.0040be43
add esp, 8
mov eax, dword [0x490490]
inc eax
mov dword [0x490490], eax
mov dword [0x48e328], eax
mov eax, dword [esi + 8]
mov dword [esp + 4], eax
mov dword [0x48cd8c], 0xe871f71c
mov eax, dword [esp + 0x2c]
mov edi, dword [eax + 4]
mov ax, word [0x489934]
mov eax, dword [0x490df0]
imul eax, eax, 0x71ac4e1e
mov cx, word [0x488e40]
and ecx, eax
mov word [0x488e40], cx
mov edx, dword [ebp + 4]
cmp edx, edi
jle 0x41239a
mov edx, edi
mov ebp, dword [esp + 0x24]
mov eax, dword [0x48baf0]
not eax
imul eax, eax, 0xd2c30778
mov cx, word [0x4898c6]
movsx ecx, cx
shl ecx, 6
add ecx, eax
or dword [0x48dc08], ecx
test edi, edi
jle 0x4124a4
xor ebp, ebp
mov dword [esp + 0xc], edi
mov edi, dword [esp + 4]
mov dword [esp + 8], edx
mov ax, word [0x488698]
cwde
and eax, 0x8f7f50c2
xor dword [0x490938], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 8]
mov esi, dword [eax + ebp*4]
add dword [0x48bc1c], 0x56d5342
mov eax, dword [esp + 0x28]
mov ecx, eax
mov eax, dword [ecx + 8]
mov ebx, dword [eax]
imul ebx, esi
add ebx, dword [edi]
imul ebx, dword [esp + 0x30]
add dword [0x48aca0], 0xdfc7ff77
push esi
push edi
push dword [ecx + 8]
push dword [esp + 0x14]
call fcn.0041fafd
add esp, 0x10
mov ax, word [0x48a7b6]
add eax, 0xa04
mov word [0x48a7b6], ax
push ebx
mov ebx, dword [esp + 0x30]
push edi
push dword [ebx + 8]
mov ebx, dword [esp + 0x18]
push ebx
call fcn.0041fafd
add esp, 0x10
mov word [0x487244], 0x9e5
mov dword [edi], esi
xor dword [0x490658], 0x29253c14
mov dword [edi + ebx*4 + 8], 0
lea edi, [edi + 4]
mov ax, word [0x4877f8]
or eax, 0x3fed
mov word [0x4877f8], ax
inc ebp
cmp ebx, ebp
jne 0x4123d6
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0xc]
lea ecx, [ecx + eax*4]
mov esi, dword [esp + 0x34]
mov edi, eax
mov ebp, dword [esp + 0x24]
jmp 0x4124a8
mov ecx, dword [esp + 4]
mov ax, word [0x488926]
mov word [0x488926], 0
lea eax, [edi*4 + 4]
push eax
push ecx
push dword [ebp + 8]
call fcn.00431b10
add esp, 0xc
mov eax, dword [0x48e23c]
shl eax, 0xa
mov ecx, dword [0x48bb3c]
imul ecx, ecx, 0xaf334d46
or ecx, 0xb0558274
cmp eax, ecx
jg 0x4124fa
mov ax, word [0x48a45a]
xor eax, 0x1e57
mov word [0x48a45a], ax
push dword [esp + 0x2c]
push ebp
call fcn.00405b62
add esp, 8
test eax, eax
js 0x412518
push dword [ebp + 8]
mov eax, dword [esp + 0x30]
push dword [eax + 8]
push edi
jmp 0x41251f
push dword [esi + 8]
push dword [ebp + 8]
push edi
call fcn.0040bef2
add esp, 0xc
mov eax, dword [0x48ce5c]
imul eax, eax, 0xd2f385bd
add eax, 0x496756e7
mov cx, word [0x4877fa]
lea edx, [ecx - 1]
mov word [0x4877fa], dx
movsx ecx, cx
add ecx, 0x7582bb0b
cmp eax, ecx
jge 0x4125b1
mov ax, word [0x48965a]
inc eax
mov word [0x48965a], ax
cwde
add eax, 0x8c5948b9
mov ecx, dword [0x48fa94]
lea edx, [ecx + 1]
mov dword [0x48fa94], edx
imul ecx, ecx, 0x41d0aea7
or ecx, 0x3ff546b0
cmp eax, ecx
jg 0x4125fb
mov eax, dword [0x48e8e8]
lea ecx, [eax + 1]
mov dword [0x48e8e8], ecx
mov ecx, 0xf4968013
sub ecx, eax
and ecx, 0x50b2c9eb
mov eax, dword [0x48fa64]
imul eax, ecx
mov dword [0x48fa64], eax
jmp 0x4125fb
mov eax, dword [0x48dd2c]
mov cx, word [0x48815e]
lea edx, [ecx - 1]
mov word [0x48815e], dx
movsx ecx, cx
xor ecx, eax
cmp ecx, 0xc7177dea
jl 0x4125fb
mov ax, word [0x487862]
cwde
mov cx, word [0x4893ec]
inc ecx
mov word [0x4893ec], cx
movsx ecx, cx
and ecx, 0xcd9d58a1
or ecx, eax
xor dword [0x48e17c], ecx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret