Function at 0x414f79
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x40]
mov ecx, dword [esi]
call fcn.0041307f
mov dword [esp + 0x28], eax
mov ebx, dword [esi]
mov eax, dword [edi]
cmp eax, ebx
cmova ebx, eax
xor eax, eax
inc eax
test ebx, ebx
cmove ebx, eax
mov ecx, ebx
call fcn.0041307f
mov ecx, ebx
mov ebp, eax
call fcn.0041307f
mov dword [esp], eax
mov eax, dword [ebp]
mov esi, dword [edi]
mov ecx, edi
cmp eax, esi
cmovb esi, eax
lea edi, [esi*4]
push edi
push dword [ecx + 4]
push dword [ebp + 4]
call fcn.00471c60
add esp, 0xc
mov eax, dword [ebp]
add edi, dword [ebp + 4]
mov dword [esp + 4], ebp
sub eax, esi
shl eax, 2
push eax
push edi
call fcn.00467374
add esp, 8
mov ebp, dword [esp]
mov ecx, dword [esp + 0x44]
mov eax, dword [ebp]
mov esi, dword [ecx]
cmp eax, esi
cmovb esi, eax
lea edi, [esi*4]
push edi
push dword [ecx + 4]
push dword [ebp + 4]
call fcn.00471c60
add esp, 0xc
mov eax, dword [ebp]
add edi, dword [ebp + 4]
sub eax, esi
shl eax, 2
push eax
push edi
call fcn.00467374
add esp, 8
lea esi, [ebx + 1]
mov ecx, esi
call fcn.0041307f
mov ecx, esi
mov dword [esp + 0xc], eax
call fcn.0041307f
mov ecx, ebx
mov dword [esp + 0x10], eax
call fcn.0041307f
mov esi, ebx
shl ebx, 7
mov dword [esp + 0x24], eax
lea ecx, [ebx + 0x20]
mov dword [esp + 0x1c], ebx
shl esi, 6
mov ebx, ebp
dec ecx
shr ecx, 5
call fcn.0041307f
test esi, esi
mov edi, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], eax
je 0x41512d
xor eax, eax
mov dword [esp + 0x14], 0
inc eax
mov dword [esp + 8], eax
mov ebp, dword [esp + 4]
push ebp
push ebx
call fcn.00413bb2
add esp, 8
mov esi, eax
mov eax, dword [ebp + 4]
mov edx, dword [ebx + 4]
mov eax, dword [eax]
mov edi, dword [edx]
xor esi, eax
xor ecx, ecx
inc ecx
and eax, ecx
and edi, eax
and esi, edi
xor esi, eax
push esi
push ebx
push ebp
call fcn.00413213
add esp, 0xc
mov eax, edi
mov ebx, ebp
neg eax
xor ecx, ecx
mov edx, dword [ebx]
mov ebp, eax
inc ecx
and ebp, ecx
mov ecx, dword [ebx + 4]
push ebp
mov ebp, ebx
mov ebx, dword [esp + 4]
push eax
push eax
push ebx
push ebp
call fcn.00413b24
add esp, 0x14
xor eax, eax
inc eax
push eax
push ebp
push ebp
call fcn.00413716
add esp, 0xc
mov ebp, dword [esp + 8]
lea eax, [ebp - 1]
push edi
mov edi, dword [esp + 0x24]
push eax
push edi
call fcn.004135b1
add esp, 0xc
push esi
push ebp
push edi
call fcn.004135b1
add esp, 0xc
mov eax, dword [esp + 0x14]
add ebp, 2
mov dword [esp + 8], ebp
inc eax
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
jb 0x41508d
mov ecx, dword [esp + 4]
mov ebx, dword [esp + 0xc]
mov eax, dword [ebx]
mov esi, dword [ecx]
cmp eax, esi
cmovb esi, eax
lea edi, [esi*4]
push edi
push dword [ecx + 4]
push dword [ebx + 4]
call fcn.00471c60
add esp, 0xc
mov eax, dword [ebx]
add edi, dword [ebx + 4]
sub eax, esi
shl eax, 2
push eax
push edi
call fcn.00467374
add esp, 8
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp]
mov eax, dword [ebp]
mov esi, dword [ecx]
cmp eax, esi
cmovb esi, eax
lea edi, [esi*4]
push edi
push dword [ecx + 4]
push dword [ebp + 4]
call fcn.00471c60
add esp, 0xc
mov eax, dword [ebp]
add edi, dword [ebp + 4]
sub eax, esi
shl eax, 2
push eax
push edi
call fcn.00467374
add esp, 8
mov ebp, dword [esp]
mov esi, dword [esp + 0x18]
mov eax, dword [ebp + 4]
test esi, esi
mov eax, dword [eax]
mov dword [esp + 8], eax
je 0x4152cd
mov edx, dword [esp + 0x1c]
dec esi
add edx, 0xfffffffe
mov ecx, dword [esp + 0x20]
mov eax, esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edx
shr eax, 4
and eax, 0x7ffffff
cmp dword [ecx], eax
jbe 0x4151f2
mov ecx, dword [ecx + 4]
mov eax, dword [ecx + eax*4]
mov ecx, edx
and ecx, 0x1e
mov ebp, eax
shr ebp, cl
and ebp, 1
jmp 0x4151fb
mov ecx, edx
xor ebp, ebp
xor eax, eax
and ecx, 0x1e
or cl, 1
shr eax, cl
mov edx, dword [ebx]
mov ecx, eax
xor eax, eax
inc eax
and ecx, eax
mov dword [esp + 0x14], ecx
mov ecx, dword [ebx + 4]
mov edi, dword [ecx]
and edi, eax
xor eax, eax
neg edi
push eax
push eax
xor ebx, ebx
push edi
push dword [esp + 0xc]
push dword [esp + 0x1c]
call fcn.00413b24
add esp, 0x14
mov esi, dword [esp + 0x10]
mov edx, dword [esi]
mov ecx, dword [esi + 4]
push ebx
push ebx
push edi
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
push edi
push esi
call fcn.00413b24
add esp, 0x14
xor eax, eax
inc eax
push eax
push ebx
push ebx
call fcn.00413716
add esp, 0xc
mov edx, dword [esi]
mov ecx, dword [esi + 4]
neg ebp
xor eax, eax
push eax
push eax
push ebp
push ebx
push esi
call fcn.00413b24
add esp, 0x14
xor eax, eax
inc eax
push eax
push edi
push edi
call fcn.00414395
add esp, 0xc
mov edx, dword [edi]
mov ecx, dword [edi + 4]
xor eax, eax
push eax
push eax
push ebp
mov ebp, dword [esp + 0xc]
push ebp
push edi
call fcn.00413b24
add esp, 0x14
mov ebx, dword [esp + 0x14]
push ebx
push ebp
push edi
call fcn.00413213
add esp, 0xc
mov edi, ebx
mov ebx, dword [esp + 0xc]
push edi
push esi
push ebx
call fcn.00413213
add esp, 0xc
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
xor dword [esp + 8], edi
add edx, 0xfffffffe
add esi, 0xffffffff
jb 0x4151c4
push dword [esp + 0x40]
push dword [esp + 8]
call fcn.00413c77
add esp, 8
mov ebx, eax
push dword [esp + 0x44]
push ebp
call fcn.00413c77
add esp, 8
test eax, ebx
mov ebx, ebp
jne 0x415309
push 0x6cf
push str..._mpint.c
push str.mp_cmp_eq_a__a_in___mp_cmp_eq_b__b_in_
call fcn.0047b3ef
add esp, 0xc
mov edi, dword [esp + 0x24]
xor eax, eax
inc eax
xor esi, esi
dec esi
mov edx, dword [edi]
mov ecx, dword [edi + 4]
push eax
push esi
push esi
mov ebp, dword [esp + 0x18]
push ebp
push ebx
call fcn.00413b24
add esp, 0x14
mov ebx, dword [esp + 8]
push ebx
push edi
push ebp
push ebp
call fcn.004131c1
add esp, 0x10
mov edx, dword [edi]
mov ecx, dword [edi + 4]
xor eax, eax
inc eax
push eax
push esi
push esi
mov esi, dword [esp + 0x1c]
push esi
push dword [esp + 0x14]
call fcn.00413b24
add esp, 0x14
push ebx
push edi
push esi
push esi
call fcn.004131c1
add esp, 0x10
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x41539d
mov eax, dword [ebx]
mov esi, dword [ebp]
cmp eax, esi
cmovb esi, eax
lea edi, [esi*4]
push edi
push dword [ebp + 4]
push dword [ebx + 4]
call fcn.00471c60
add esp, 0xc
mov eax, dword [ebx]
add edi, dword [ebx + 4]
sub eax, esi
shl eax, 2
push eax
push edi
call fcn.00467374
add esp, 8
push dword [esp + 4]
call fcn.00413137
add esp, 4
push dword [esp]
call fcn.00413137
add esp, 4
push ebp
call fcn.00413137
add esp, 4
push dword [esp + 0x10]
call fcn.00413137
add esp, 4
push dword [esp + 0x24]
call fcn.00413137
add esp, 4
push dword [esp + 0x20]
call fcn.00413137
add esp, 4
mov eax, ebx
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret