Function at 0x4d5990
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
push ebx
mov ebx, dword [eax + 8]
push esi
mov esi, dword [eax]
push edi
push 4
push ebx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x44], ebx
call fcn.004b9228
mov edi, eax
add esp, 8
test edi, edi
jne 0x4d59da
lea edx, [ebx*4]
push edx
push 0x5c0040
call fcn.004b7f6d
add esp, 8
push 0xffffffffffffffff
call fcn.004b856d
mov ebx, 1
push 0x13880
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x1c], 0x2710
call fcn.004b7263
add esp, 4
test eax, eax
jne 0x4d5a13
push 0x13880
push 0x5c0020
call fcn.004b7f6d
add esp, 8
push 0xffffffffffffffff
call fcn.004b856d
cmp dword [ebp - 0x20], 0
mov dword [ebp - 8], eax
mov edx, esi
jbe 0x4d5a6b
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x40], eax
xor esi, esi
cmp byte [edx + 4], 0
mov byte [edx + 6], 0
jbe 0x4d5a5e
lea ecx, [edx + 8]
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
mov eax, dword [edi + ecx*4]
add dword [ebp - 0x24], 4
lea ebx, [eax + 1]
xor ebx, eax
and ebx, 0x3fffffff
xor ebx, eax
mov dword [edi + ecx*4], ebx
movzx ecx, byte [edx + 4]
inc esi
cmp esi, ecx
jb 0x4d5a36
mov ebx, dword [ebp - 0x48]
dec dword [ebp - 0x40]
movzx eax, byte [edx + 4]
lea edx, [edx + eax*4 + 8]
jne 0x4d5a24
mov edx, dword [ebp - 0x44]
xor ecx, ecx
test edx, edx
je 0x4d5a96
mov eax, dword [edi + ecx*4]
mov esi, eax
and esi, 0x3fffffff
cmp esi, 2
ja 0x4d5a91
and eax, 0xc0000000
or eax, 0x40000000
mov dword [edi + ecx*4], eax
inc ecx
cmp ecx, edx
jb 0x4d5a74
cmp dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 0
jbe 0x4d5b66
mov ecx, dword [ebp - 8]
cmp byte [eax + 4], 0
mov dword [ebp - 0x18], 0
jbe 0x4d5b4b
lea edx, [eax + 8]
mov dword [ebp - 0x24], edx
jmp 0x4d5ad0
mov edx, dword [ebp - 0x24]
mov esi, dword [edx]
test dword [edi + esi*4], 0x40000000
je 0x4d5b38
cmp ebx, dword [ebp - 0x1c]
jne 0x4d5b11
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
add eax, eax
mov dword [ebp - 0x1c], eax
add eax, eax
add eax, eax
add eax, eax
push eax
push ecx
mov dword [ebp - 0x48], eax
call fcn.004b95e6
add esp, 8
test eax, eax
je 0x4d5b9e
mov dword [ebp - 8], eax
mov ecx, eax
mov eax, dword [ebp - 0x40]
mov edx, eax
sub edx, dword [ebp - 0x28]
sar edx, 2
mov dword [ecx + ebx*8], edx
mov edx, dword [edi + esi*4]
and edx, 0x3fffffff
mov dword [ecx + ebx*8 + 4], edx
mov edx, dword [edi + esi*4]
xor edx, ebx
and edx, 0x3fffffff
xor dword [edi + esi*4], edx
inc ebx
mov edx, dword [ebp - 0x18]
movzx esi, byte [eax + 4]
add dword [ebp - 0x24], 4
inc edx
mov dword [ebp - 0x18], edx
cmp edx, esi
jb 0x4d5ad0
movzx edx, byte [eax + 4]
lea eax, [eax + edx*4 + 8]
mov edx, dword [ebp - 4]
inc edx
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], edx
cmp edx, dword [ebp - 0x20]
jb 0x4d5ab0
mov ebx, dword [ebp + 0x10]
lea ebx, [ebx + ebx*2]
add ebx, ebx
add ebx, ebx
push ebx
mov dword [ebp - 0x14], 0
call fcn.004b7263
mov esi, eax
add esp, 4
mov dword [ebp - 0xc], esi
test esi, esi
jne 0x4d5bb6
push ebx
push 0x5c0020
call fcn.004b7f6d
add esp, 8
push 0xffffffffffffffff
call fcn.004b856d
mov eax, dword [ebp - 0x48]
push eax
push 0x5c005c
call fcn.004b7f6d
add esp, 8
push 0xffffffffffffffff
call fcn.004b856d
mov ebx, 0x1f4
push 0x7d0
mov dword [ebp - 0x34], ebx
call fcn.004b7263
add esp, 4
push 0x7d0
test eax, eax
jne 0x4d5be8
push 0x5c0020
call fcn.004b7f6d
add esp, 8
push 0xffffffffffffffff
call fcn.004b856d
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x2c], ebx
call fcn.004b7263
add esp, 4
test eax, eax
jne 0x4d5c13
push 0x7d0
push 0x5c0020
call fcn.004b7f6d
add esp, 8
push 0xffffffffffffffff
call fcn.004b856d
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebp - 0x44], eax
jbe 0x4d5e71
mov dword [ebp - 0x40], esi
fldz
mov ecx, dword [edi + eax*4]
fstp dword [ebp - 0x24]
test ecx, 0x40000000
je 0x4d5e61
test ecx, ecx
js 0x4d5e61
mov edx, dword [ebp - 0x10]
xor esi, esi
xor ecx, ecx
mov dword [edx], eax
or dword [edi + eax*4], 0x80000000
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + ecx*4]
mov eax, dword [edi + edx*4]
and eax, 0x3fffffff
mov dword [ebp - 0x3c], eax
je 0x4d5d9e
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax*8]
mov ebx, dword [ebp - 0x28]
cmp byte [ebx + edx*4 + 6], 0
lea ebx, [ebx + edx*4]
mov dword [ebp - 0x4c], ebx
je 0x4d5c96
mov eax, dword [ecx + eax*8 + 4]
jmp 0x4d5d90
cmp byte [ebx + 4], 0
mov dword [ebp - 0x18], 0
jbe 0x4d5d3f
lea eax, [ebx + 8]
mov dword [ebp - 0x30], eax
lea ecx, [ecx]
mov ecx, dword [ebp - 0x30]
mov esi, dword [ecx]
mov eax, dword [edi + esi*4]
test eax, 0x40000000
jne 0x4d5cde
and eax, 0x3fffffff
mov dword [ebp - 0x50], eax
fild dword [ebp - 0x50]
jns 0x4d5cd2
fadd qword [0x5b4428]
fld1
fdivrp st(1)
fadd dword [ebp - 0x24]
fstp dword [ebp - 0x24]
jmp 0x4d5d28
test eax, eax
js 0x4d5d28
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x2c]
jne 0x4d5d14
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x10]
add eax, eax
lea ebx, [eax*4]
push ebx
push ecx
mov dword [ebp - 0x2c], eax
call fcn.004b95e6
add esp, 8
test eax, eax
je 0x4d5edb
mov ebx, dword [ebp - 0x4c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
mov dword [edx + eax*4], esi
inc eax
or dword [edi + esi*4], 0x80000000
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
movzx ecx, byte [ebx + 4]
add dword [ebp - 0x30], 4
inc eax
mov dword [ebp - 0x18], eax
cmp eax, ecx
jb 0x4d5cb0
mov esi, dword [ebp - 0x38]
cmp esi, dword [ebp - 0x34]
jne 0x4d5d72
mov edx, dword [ebp - 0x34]
lea eax, [edx + edx]
lea esi, [eax*4]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x20]
push esi
push eax
call fcn.004b95e6
add esp, 8
test eax, eax
je 0x4d5ef0
mov esi, dword [ebp - 0x38]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax*8]
mov ecx, dword [ebp - 0x20]
mov dword [ecx + esi*4], edx
mov edx, dword [ebp - 8]
inc esi
mov byte [ebx + 6], 1
mov eax, dword [edx + eax*8 + 4]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], eax
test eax, eax
jne 0x4d5c77
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x1c]
inc ecx
mov dword [ebp - 0x48], ecx
cmp ecx, eax
jb 0x4d5c60
cmp esi, 0xffff
ja 0x4d5e5e
cmp eax, 0xffff
ja 0x4d5e5e
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0x10]
jae 0x4d5dd1
mov ebx, dword [ebp - 0x40]
jmp 0x4d5df1
fld dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
fld dword [ecx + 4]
fcompp
fnstsw ax
test ah, 1
je 0x4d5e5e
mov ebx, ecx
mov edx, dword [ebx + 8]
push edx
call fcn.004b7229
add esp, 4
mov ax, word [ebp - 0x1c]
fld dword [ebp - 0x24]
mov word [ebx], si
fstp dword [ebx + 4]
add esi, esi
add esi, esi
push esi
mov word [ebx + 2], ax
call fcn.004b7263
add esp, 4
push esi
test eax, eax
je 0x4d59ff
mov ecx, dword [ebp - 0x20]
push ecx
push eax
mov dword [ebx + 8], eax
call fcn.004bd390
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp + 0x10]
add esp, 0xc
cmp esi, eax
jae 0x4d5e50
lea edx, [eax - 1]
cmp esi, edx
jne 0x4d5e46
push eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.004d5880
add esp, 8
inc esi
add dword [ebp - 0x40], 0xc
mov dword [ebp - 0x14], esi
jmp 0x4d5e5e
mov ecx, dword [ebp - 0xc]
push ecx
xor edx, edx
call fcn.004d5620
add esp, 4
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [ebp - 0x44]
jb 0x4d5c27
mov esi, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
push edx
call fcn.004b7229
push edi
call fcn.004b7229
mov eax, dword [ebp - 0x20]
push eax
call fcn.004b7229
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004b7229
mov edi, dword [ebp - 0x14]
push 0x4d55c0
push 0xc
push edi
push esi
call fcn.004b8f30
xor esi, esi
push 0x4e20
mov dword [ebp - 0x44], 0x1388
xor ebx, ebx
mov dword [ebp - 0x40], esi
call fcn.004b7263
add esp, 0x24
cmp eax, esi
jne 0x4d5f05
push 0x4e20
push 0x5c0020
call fcn.004b7f6d
add esp, 8
push 0xffffffffffffffff
call fcn.004b856d
push ebx
push 0x5c005c
call fcn.004b7f6d
add esp, 8
push 0xffffffffffffffff
call fcn.004b856d
push esi
push 0x5c005c
call fcn.004b7f6d
add esp, 8
push 0xffffffffffffffff
call fcn.004b856d
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], esi
cmp edi, esi
jbe 0x4d5fcf
mov esi, dword [ebp - 0xc]
movzx edx, word [esi + 2]
movzx ecx, word [esi]
add edx, dword [ebp + 0x14]
lea eax, [ecx + ebx]
cmp eax, edx
jae 0x4d5f84
movzx eax, word [esi + 2]
add dword [ebp + 0x14], eax
add dword [ebp - 0x40], eax
xor edi, edi
test ecx, ecx
je 0x4d5f75
cmp ebx, dword [ebp - 0x44]
jne 0x4d5f60
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x20]
lea eax, [ecx + ecx]
mov dword [ebp - 0x44], eax
add eax, eax
add eax, eax
push eax
push edx
mov dword [ebp - 0x4c], eax
call fcn.004b95e6
add esp, 8
test eax, eax
je 0x4d5fb7
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + edi*4]
mov edx, dword [ebp - 0x20]
mov dword [edx + ebx*4], ecx
movzx eax, word [esi]
inc edi
inc ebx
cmp edi, eax
jb 0x4d5f37
mov eax, dword [ebp - 4]
inc eax
add esi, 0xc
mov dword [ebp - 4], eax
cmp eax, dword [ebp - 0x14]
jb 0x4d5f16
cmp dword [ebp - 4], 0x1f40
jbe 0x4d5fcf
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp + 8]
push edx
push eax
push ebx
push str.removing__u_relations_and__u_ideals_in__u_cliques_n
push ecx
call fcn.00410350
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 0xc]
push ebx
push edx
push eax
call fcn.004d5780
add esp, 0x20
jmp 0x4d5fd1
mov ecx, dword [ebp - 0x4c]
push ecx
push 0x5c005c
call fcn.004b7f6d
add esp, 8
push 0xffffffffffffffff
call fcn.004b856d
xor ebx, ebx
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x4d5ff1
mov esi, dword [ebp - 0xc]
add esi, 8
mov edi, edi
mov ecx, dword [esi]
push ecx
call fcn.004b7229
add esp, 4
add esi, 0xc
dec edi
jne 0x4d5fe0
mov edx, dword [ebp - 0xc]
push edx
call fcn.004b7229
mov eax, dword [ebp - 0x20]
push eax
call fcn.004b7229
add esp, 8
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret