Function at 0x41e0b0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x594
mov eax, dword [0x528af4]
xor eax, esp
mov dword [esp + 0x590], eax
mov eax, dword [esp + 0x5ac]
push ebx
mov ebx, dword [esp + 0x5a0]
push esi
mov esi, dword [esp + 0x5a0]
push edi
mov edi, dword [esp + 0x5bc]
push 0x44
mov dword [esp + 0x44], eax
lea eax, [esp + 0x58]
push 0
push eax
mov dword [esp + 0x48], ebx
call fcn.004ee100
add esp, 0xc
mov ecx, esi
mov edx, ebx
mov eax, dword [ecx]
lea ecx, [ecx + 4]
inc dword [esp + eax*4 + 0x54]
sub edx, 1
jne 0x41e100
cmp dword [esp + 0x54], ebx
jne 0x41e11c
lea eax, [edx + 2]
jmp 0x41e511
mov ebx, dword [edi]
mov ecx, 1
mov dword [esp + 0x10], ebx
cmp dword [esp + ecx*4 + 0x54], 0
jne 0x41e134
inc ecx
cmp ecx, 0x10
jbe 0x41e127
mov dword [esp + 0xc], ecx
cmp ebx, ecx
jae 0x41e142
mov ebx, ecx
mov dword [esp + 0x10], ebx
mov edx, 0x10
cmp dword [esp + edx*4 + 0x54], 0
jne 0x41e153
sub edx, 1
jne 0x41e147
mov dword [esp + 0x38], edx
cmp ebx, edx
jbe 0x41e161
mov ebx, edx
mov dword [esp + 0x10], ebx
push ebp
mov ebp, 1
mov dword [edi], ebx
shl ebp, cl
cmp ecx, edx
jae 0x41e17d
nop
sub ebp, dword [esp + ecx*4 + 0x58]
js 0x41e189
inc ecx
add ebp, ebp
cmp ecx, edx
jb 0x41e170
mov eax, dword [esp + edx*4 + 0x58]
sub ebp, eax
mov dword [esp + 0x54], ebp
jns 0x41e193
mov eax, 2
jmp 0x41e510
add eax, ebp
xor ecx, ecx
mov dword [esp + edx*4 + 0x58], eax
mov dword [esp + 0xa0], ecx
sub edx, 1
je 0x41e1c3
xor eax, eax
lea esp, [esp]
add ecx, dword [esp + eax + 0x5c]
lea eax, [eax + 4]
mov dword [esp + eax + 0xa0], ecx
sub edx, 1
jne 0x41e1b0
push 0x480
lea eax, [esp + 0x124]
push 0
push eax
call fcn.004ee100
mov edi, dword [esp + 0x4c]
add esp, 0xc
xor ecx, ecx
mov edx, dword [esi]
lea esi, [esi + 4]
test edx, edx
je 0x41e1ff
mov eax, dword [esp + edx*4 + 0x9c]
mov dword [esp + eax*4 + 0x120], ecx
inc eax
mov dword [esp + edx*4 + 0x9c], eax
inc ecx
cmp ecx, edi
jb 0x41e1e0
xor edi, edi
lea eax, [esp + 0x120]
mov edx, ebx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x10]
or ebp, 0xffffffff
neg edx
mov dword [esp + 0x34], edi
xor esi, esi
mov dword [esp + 0x9c], edi
mov dword [esp + 0x38], ebp
mov dword [esp + 0x1c], edx
mov dword [esp + 0xe0], edi
mov dword [esp + 0x48], edi
cmp eax, dword [esp + 0x3c]
jg 0x41e4c4
lea ecx, [esp + 0x58]
lea ecx, [ecx + eax*4]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x20]
lea ecx, [ecx]
mov ecx, dword [ecx]
test ecx, ecx
je 0x41e4aa
lea eax, [ecx + 1]
lea ecx, [ecx]
dec eax
dec ecx
mov dword [esp + 0x50], eax
lea eax, [edx + ebx]
mov dword [esp + 0x4c], ecx
cmp dword [esp + 0x10], eax
jle 0x41e37a
sub edx, ebx
mov ecx, edx
jmp 0x41e290
mov esi, dword [esp + 0x3c]
inc ebp
add ecx, ebx
mov dword [esp + 0x38], ebp
sub esi, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], ecx
cmp esi, ebx
jbe 0x41e2ab
mov esi, ebx
mov ebx, dword [esp + 0x10]
sub ebx, eax
mov eax, 1
mov ecx, ebx
shl eax, cl
cmp eax, dword [esp + 0x50]
jbe 0x41e2e5
mov edx, dword [esp + 0x20]
or ecx, 0xffffffff
sub ecx, dword [esp + 0x4c]
inc ebx
add eax, ecx
cmp ebx, esi
jae 0x41e2e5
mov ecx, dword [edx + 4]
lea edx, [edx + 4]
add eax, eax
cmp eax, ecx
jbe 0x41e2e5
inc ebx
sub eax, ecx
cmp ebx, esi
jb 0x41e2d2
mov ecx, ebx
mov esi, 1
shl esi, cl
lea eax, [esi*8 + 8]
push eax
call fcn.004f2e54
add esp, 4
test eax, eax
je 0x41e4d9
mov edx, dword [esp + 0x44]
lea ecx, [eax + 8]
add eax, 4
mov dword [esp + 0x48], ecx
mov dword [esp + 0x44], eax
mov dword [esp + ebp*4 + 0xe0], ecx
mov dword [edx], ecx
mov dword [eax], 0
test ebp, ebp
je 0x41e361
mov eax, dword [esp + 0x14]
add bl, 0x10
mov byte [esp + 0x28], bl
mov edx, edi
mov ebx, ecx
mov byte [esp + 0x29], al
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
shr edx, cl
mov ecx, dword [esp + ebp*4 + 0xdc]
mov dword [esp + ebp*4 + 0x9c], edi
mov dword [esp + 0x18], ebx
mov dword [ecx + edx*8], eax
mov dword [ecx + edx*8 + 4], ebx
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
lea eax, [edx + ebx]
cmp dword [esp + 0x10], eax
jg 0x41e290
mov al, byte [esp + 0x10]
lea edi, [esp + 0x120]
sub al, dl
mov byte [esp + 0x29], al
mov eax, dword [esp + 0x40]
lea eax, [edi + eax*4]
mov edi, dword [esp + 0x30]
cmp edi, eax
jb 0x41e3a1
mov byte [esp + 0x28], 0x63
jmp 0x41e3ef
mov ecx, dword [edi]
cmp ecx, dword [esp + 0x5b0]
jae 0x41e3c1
cmp ecx, 0x100
mov dword [esp + 0x18], ecx
setb al
add al, 0xf
mov byte [esp + 0x28], al
jmp 0x41e3e8
mov eax, dword [esp + 0x5b8]
test eax, eax
je 0x41e3ef
sub ecx, dword [esp + 0x5b0]
mov al, byte [eax + ecx*4]
mov byte [esp + 0x28], al
mov eax, dword [esp + 0x5b4]
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x18], eax
add edi, 4
mov dword [esp + 0x30], edi
mov ecx, dword [esp + 0x10]
mov edi, 1
mov eax, dword [esp + 0x34]
sub ecx, edx
shl edi, cl
mov ecx, edx
shr eax, cl
cmp eax, esi
jae 0x41e43d
mov ebx, dword [esp + 0x28]
lea ecx, [edi*8]
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x48]
lea ecx, [ecx + eax*8]
mov dword [ecx], ebx
add eax, edi
mov dword [ecx + 4], ebp
add ecx, dword [esp + 0x24]
cmp eax, esi
jb 0x41e422
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x38]
mov ecx, dword [esp + 0x10]
mov eax, 1
mov edi, dword [esp + 0x34]
lea ecx, [ecx - 1]
shl eax, cl
test edi, eax
je 0x41e45b
xor edi, eax
shr eax, 1
test edi, eax
jne 0x41e453
xor edi, eax
mov ecx, edx
mov eax, 1
mov dword [esp + 0x34], edi
shl eax, cl
dec eax
and eax, edi
cmp eax, dword [esp + ebp*4 + 0x9c]
je 0x41e496
sub edx, ebx
mov eax, 1
mov ecx, edx
dec ebp
shl eax, cl
dec eax
and eax, edi
cmp eax, dword [esp + ebp*4 + 0x9c]
jne 0x41e476
mov dword [esp + 0x38], ebp
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
test ecx, ecx
jne 0x41e270
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
inc eax
add ecx, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], ecx
cmp eax, dword [esp + 0x3c]
jle 0x41e260
cmp dword [esp + 0x54], 0
je 0x41e50e
cmp dword [esp + 0x40], 1
je 0x41e50e
mov eax, 1
jmp 0x41e510
test ebp, ebp
je 0x41e4fd
mov eax, dword [esp + 0xe0]
test eax, eax
je 0x41e4fd
mov esi, dword [eax - 4]
sub eax, 8
push eax
call fcn.004f252e
add esp, 4
mov eax, esi
test esi, esi
jne 0x41e4e8
mov ecx, 0x56df60
call fcn.00462e40
mov eax, 3
jmp 0x41e510
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x59c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004ebbd8
add esp, 0x594
ret 0x1c