Function at 0x442c40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
xor esi, esi
mov dword [esp + 0x14], ebx
cmp dword [edi + 0x1c], ebx
jne 0x442e32
nop
inc esi
mov ecx, edi
mov dword [esp + 0x1c], esi
call fcn.004431a0
push esi
mov ecx, edi
call fcn.00442700
test eax, eax
jne 0x442d10
test ebx, ebx
jne 0x442c8b
lea eax, [esi + 0x190]
jmp 0x442d12
cmp esi, ebx
jbe 0x442d16
mov esi, dword [edi + 0x20]
test esi, esi
je 0x442d0c
nop word [eax + eax]
cmp dword [esi + 4], 0xffffffff
lea eax, [esp + 0x13]
mov byte [esp + 0x13], 2
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], eax
je 0x442d02
xor edx, edx
nop dword [eax]
mov eax, dword [esi + 0x130]
mov cl, byte [esp + edx + 0x13]
and eax, 0xf
mov al, byte [eax + esi + 0x164]
add al, byte [esi + 0x138]
xor al, cl
mov byte [esp + edx + 0x13], al
inc edx
inc dword [esi + 0x130]
movsx eax, cl
mov dword [esi + 0x138], eax
cmp edx, dword [esp + 0x20]
jb 0x442cc0
mov eax, dword [esi]
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call dword [eax + 4]
mov esi, dword [esi + 0x178]
test esi, esi
jne 0x442ca0
mov esi, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x14], eax
mov ecx, edi
call fcn.00442a00
mov eax, 0x1b4e81b5
mov ecx, esi
mul esi
shr edx, 6
imul eax, edx, 0x258
sub ecx, eax
jne 0x442d3a
mov ecx, edi
call fcn.004424f0
lea eax, [esp + 0x28]
push eax
call dword [0x45413c]
nop
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
add eax, 0x2ac18000
adc edx, 0xfe624e21
shrd eax, edx, 0x18
mov esi, dword [edi + 0x20]
xor ebx, ebx
mov dword [esp + 0x18], eax
test esi, esi
je 0x442e18
nop
cmp dword [esi + 0x180], 0
je 0x442da4
cmp dword [esi + 0x184], 0
je 0x442da4
cmp dword [esi + 0x18c], 1
jb 0x442da4
lea eax, [esp + 0x30]
xorps xmm0, xmm0
push eax
mov ecx, esi
movlpd qword [esp + 0x34], xmm0
call fcn.0043d4a0
mov eax, dword [esp + 0x18]
cmp dword [esi + 4], 0xffffffff
je 0x442dbd
cmp dword [esi + 0x124], eax
jbe 0x442db6
xor eax, eax
jmp 0x442dc2
mov ecx, esi
call fcn.00447870
mov eax, 1
test eax, eax
jne 0x442dd0
mov ebx, esi
mov esi, dword [esi + 0x178]
jmp 0x442e0c
mov eax, dword [edi + 0x28]
test eax, eax
je 0x442de2
dec eax
mov dword [edi + 0x28], eax
lock dec dword [0x4850c0]
mov eax, dword [esi + 0x178]
mov ecx, esi
push 1
test ebx, ebx
je 0x442e02
mov dword [ebx + 0x178], eax
mov eax, dword [esi]
call dword [eax]
mov esi, dword [ebx + 0x178]
jmp 0x442e0c
mov dword [edi + 0x20], eax
mov eax, dword [esi]
call dword [eax]
mov esi, dword [edi + 0x20]
mov eax, dword [esp + 0x18]
test esi, esi
jne 0x442d70
push 5
call dword [0x454110]
cmp dword [edi + 0x1c], 0
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
je 0x442c60
mov esi, dword [edi + 0x4c]
test esi, esi
je 0x442e60
mov eax, dword [esi]
test eax, eax
je 0x442e4e
push eax
call fcn.0041afc0
add esp, 4
mov dword [esi], 0
push 4
push esi
call fcn.00408b65
add esp, 8
mov dword [edi + 0x4c], 0
mov eax, dword [edi + 0x44]
test eax, eax
je 0x442e77
push eax
call fcn.0041afc0
add esp, 4
mov dword [edi + 0x44], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x48], 0
mov esi, dword [edi + 0x5c]
test esi, esi
je 0x442eb3
mov eax, dword [esi]
test eax, eax
je 0x442ea1
push eax
call fcn.0041afc0
add esp, 4
mov dword [esi], 0
push 4
push esi
call fcn.00408b65
add esp, 8
mov dword [edi + 0x5c], 0
mov eax, dword [edi + 0x54]
test eax, eax
je 0x442eca
push eax
call fcn.0041afc0
add esp, 4
mov dword [edi + 0x54], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x60], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret