Function at 0x4e1ae0
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x188
mov eax, dword [0x5b0008]
xor eax, esp
mov dword [esp + 0x184], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x58], eax
push esi
push edi
mov edi, ecx
mov dword [esp + 0x30], 3
mov esi, edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x3c], esi
mov edx, 1
mov eax, dword [edi + 0x5c]
mov ecx, dword [edi + 4]
mov dword [esp + 0x48], eax
mov eax, dword [edi + 0x28]
mov dword [esp + 0x2c], eax
lea eax, [edi + 0x2c]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x24]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x58], eax
add eax, ecx
mov dword [esp + 0x6c], eax
mov eax, esi
sub eax, ecx
mov dword [esp + 0x20], ecx
mov ecx, dword [edi + 0xb8]
mov dword [esp + 0x18], eax
mov esi, dword [esp + 0x18]
shl edx, cl
mov ecx, dword [edi + 0x10]
sub esi, edx
sub eax, ecx
cmp eax, edx
mov eax, esi
mov esi, dword [esp + 0x3c]
cmovbe eax, ecx
cmp dword [edi + 0x18], 0
cmovne eax, ecx
mov ecx, 6
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0xc4]
cmp eax, ecx
cmovb ecx, eax
mov eax, dword [edi + 0x50]
imul edx, dword [esi], 0x9e3779b1
mov dword [esp + 0x44], eax
mov eax, dword [edi + 0x54]
mov dword [esp + 0x74], eax
mov eax, 1
shl eax, cl
mov ecx, 0x22
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0xb4]
mov dword [esp + 0x5c], eax
sub ecx, dword [eax + 0xc0]
mov eax, edx
shr eax, cl
mov ecx, dword [edi + 0xc4]
shl eax, 2
mov dword [esp + 0x50], eax
cmp ecx, 6
jbe 0x4e1bee
add ecx, 0xfffffffa
mov eax, 1
shl eax, cl
mov dword [esp + 0x4c], eax
jmp 0x4e1bf6
mov dword [esp + 0x4c], 0
mov ecx, edi
mov dword [esp + 0x40], 0x3f
cmp dword [ecx + 0xdc], 0
jne 0x4e1e34
mov edi, dword [ecx + 0x1c]
mov eax, dword [esp + 0x18]
sub eax, edi
mov dword [esp + 8], edi
cmp eax, 0x180
jbe 0x4e1d58
mov edx, dword [esp + 0x10]
lea eax, [edi + 0x60]
mov dword [esp + 0x54], eax
mov dword [esp + 0x28], edx
cmp edi, eax
jae 0x4e1cdd
mov esi, dword [esp + 8]
mov edi, 0x18
sub edi, edx
mov edx, dword [esp + 0x20]
add edx, 8
mov dword [esp + 0x64], edi
mov dword [esp + 0x34], edx
nop word [eax + eax]
imul edx, dword [edx + esi], 0x9e3779b1
mov eax, dword [ecx + 0x54]
mov dword [esp + 0x74], eax
mov eax, esi
and eax, 7
xor edx, dword [ecx + 0x50]
mov ecx, edi
mov edi, dword [esp + 0x1c]
shr edx, cl
mov ecx, dword [edi + eax*4]
mov dword [edi + eax*4], edx
mov edi, ecx
mov edx, dword [esp + 0x2c]
mov eax, 0
shr edi, 2
and edi, 0x3fffffc0
mov dword [esp + 0x28], ecx
add edx, edi
movzx ecx, byte [edx]
dec ecx
and ecx, 0x3f
cmove eax, dword [esp + 0x40]
add ecx, eax
mov eax, dword [esp + 0x28]
mov byte [edx], cl
mov byte [ecx + edx], al
lea eax, [ecx + edi]
mov ecx, dword [esp + 0x48]
mov edi, dword [esp + 0x64]
mov edx, dword [esp + 0x34]
mov dword [ecx + eax*4], esi
inc esi
mov ecx, dword [esp + 0x14]
cmp esi, dword [esp + 0x54]
jb 0x4e1c60
mov eax, dword [ecx + 0x24]
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
mov edi, dword [esp + 0x18]
lea edx, [esi + 1]
mov eax, dword [esp + 0x20]
add edi, 0xffffffe0
add eax, edi
mov dword [esp + 8], edi
cmp eax, edx
jbe 0x4e1cf9
xor edx, edx
jmp 0x4e1d00
sub edx, dword [esp + 0x20]
sub edx, edi
inc edx
mov eax, 8
cmp edx, eax
cmova edx, eax
add edx, edi
mov dword [esp + 0x34], edx
cmp edi, edx
jae 0x4e1d58
mov eax, 0x18
mov esi, edx
sub eax, dword [esp + 0x28]
mov dword [esp + 0x54], eax
mov eax, dword [ecx + 0x54]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x20]
imul edx, dword [edi + eax], 0x9e3779b1
mov eax, edi
and eax, 7
inc edi
xor edx, dword [ecx + 0x50]
mov ecx, dword [esp + 0x54]
shr edx, cl
mov ecx, dword [esp + 0x14]
mov dword [ecx + eax*4 + 0x2c], edx
cmp edi, esi
jb 0x4e1d23
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 8]
mov eax, dword [ecx + 0x5c]
mov edx, dword [ecx + 4]
mov dword [esp + 0x54], eax
mov eax, dword [ecx + 0x28]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x70], edx
cmp edi, eax
jae 0x4e1e02
mov esi, dword [esp + 8]
mov edi, 0x18
sub edi, dword [ecx + 0x24]
mov dword [esp + 0x28], edi
nop dword [eax]
imul edx, dword [edx + esi + 8], 0x9e3779b1
mov eax, esi
and eax, 7
xor edx, dword [ecx + 0x50]
mov ecx, edi
mov edi, dword [esp + 0x1c]
shr edx, cl
mov ecx, dword [edi + eax*4]
mov dword [edi + eax*4], edx
mov edi, ecx
mov edx, dword [esp + 0x34]
mov eax, 0
shr edi, 2
and edi, 0x3fffffc0
mov dword [esp + 0x64], ecx
add edx, edi
movzx ecx, byte [edx]
dec ecx
and ecx, 0x3f
cmove eax, dword [esp + 0x40]
add ecx, eax
mov eax, dword [esp + 0x64]
mov byte [edx], cl
mov byte [ecx + edx], al
lea eax, [ecx + edi]
mov ecx, dword [esp + 0x54]
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x70]
mov dword [ecx + eax*4], esi
inc esi
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
cmp esi, eax
jb 0x4e1d90
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x1c]
mov dword [ecx + 0x1c], eax
mov ecx, 0x18
imul edx, dword [esi + 8], 0x9e3779b1
sub ecx, dword [esp + 0x10]
xor edx, dword [esp + 0x44]
shr edx, cl
and eax, 7
mov ecx, dword [edi + eax*4]
mov dword [edi + eax*4], edx
mov edx, ecx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], ecx
jmp 0x4e1e50
xor edx, dword [esp + 0x44]
mov ecx, 0x18
sub ecx, dword [esp + 0x10]
mov eax, edi
shr edx, cl
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x10], edx
mov dword [eax + 0x1c], ecx
add dword [eax + 0x58], edx
mov eax, edx
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x48]
shr eax, 2
and eax, 0x3fffffc0
mov dword [esp + 8], 0
add edi, eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x34], edi
lea ecx, [ecx + eax*4]
movzx eax, byte [edi]
mov dword [esp + 0x44], eax
movsx eax, dl
mov edx, edi
mov dword [esp + 0x40], ecx
xor ecx, ecx
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm1, xmm0, 0
xorps xmm0, xmm0
movaps xmmword [esp + 0x70], xmm0
nop dword [eax]
movups xmm0, xmmword [edx]
lea edx, [edx + 0x10]
pcmpeqb xmm0, xmm1
pmovmskb eax, xmm0
mov dword [esp + ecx*4 + 0x70], eax
inc ecx
cmp ecx, 4
jl 0x4e1eb0
mov eax, dword [esp + 0x7c]
cdq
mov ecx, eax
mov edi, edx
mov eax, dword [esp + 0x78]
shld edi, ecx, 0x10
cdq
shl ecx, 0x10
or edi, edx
or ecx, eax
mov eax, dword [esp + 0x74]
shld edi, ecx, 0x10
cdq
shl ecx, 0x10
or edi, edx
or ecx, eax
mov eax, dword [esp + 0x70]
shld edi, ecx, 0x10
cdq
or edi, edx
shl ecx, 0x10
or ecx, eax
mov dword [esp + 0x48], edi
mov edi, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
and edi, 0x3f
mov dword [esp + 0x2c], ecx
mov ecx, edi
mov eax, dword [esp + 0x2c]
neg ecx
and ecx, 0x3f
call fcn.00519060
mov dword [esp + 0x70], eax
mov ecx, edi
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x48]
call fcn.00519040
mov edi, dword [esp + 0x70]
mov ecx, dword [esp + 0x1c]
or edi, eax
or ecx, edx
mov dword [esp + 0x1c], ecx
ja 0x4e1f51
test edi, edi
je 0x4e1fae
xor esi, esi
cmp dword [esp + 0x24], 0
jbe 0x4e1fa6
push ecx
push edi
call fcn.004d55d0
add eax, dword [esp + 0x4c]
add esp, 8
and eax, 0x3f
je 0x4e1f86
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx + eax*4]
cmp eax, dword [esp + 0xc]
jb 0x4e1fa6
mov dword [esp + esi*4 + 0x88], eax
inc esi
dec dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov ecx, edi
add ecx, 0xffffffff
adc edx, 0xffffffff
and edi, ecx
mov ecx, dword [esp + 0x1c]
and ecx, edx
mov dword [esp + 0x1c], ecx
ja 0x4e1f53
jb 0x4e1fa6
test edi, edi
jne 0x4e1f53
mov dword [esp + 8], esi
mov esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x34]
mov edi, 0x3f
mov eax, 0
movzx ecx, byte [edx]
dec ecx
and ecx, 0x3f
cmove eax, edi
mov edi, dword [esp + 0x40]
add ecx, eax
mov eax, dword [esp + 0x10]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x1c]
mov dword [edi + ecx*4], eax
inc dword [edx + 0x1c]
cmp dword [esp + 8], 0
jbe 0x4e205d
mov ecx, dword [esp + 8]
mov edi, 3
xor eax, eax
nop dword [eax]
nop dword [eax + eax]
mov eax, dword [esp + eax*4 + 0x88]
mov edx, dword [esp + 0x20]
add edx, eax
mov dword [esp + 0x70], eax
mov eax, dword [edx + edi - 3]
cmp eax, dword [edi + esi - 3]
jne 0x4e204c
push dword [esp + 0x38]
mov ecx, esi
call fcn.004d5660
add esp, 4
cmp eax, edi
jbe 0x4e2048
mov ecx, dword [esp + 0x18]
mov edi, eax
sub ecx, dword [esp + 0x70]
add eax, esi
mov edx, dword [esp + 0x60]
add ecx, 3
mov dword [edx], ecx
cmp eax, dword [esp + 0x38]
je 0x4e2059
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0x28]
inc eax
mov dword [esp + 0x28], eax
cmp eax, ecx
jb 0x4e2000
mov dword [esp + 0x30], edi
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x4c]
add edx, dword [esp + 0x24]
mov dword [esp + 0x20], edx
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov dword [esp + 0x24], eax
sub eax, edi
add eax, dword [esp + 0x58]
mov dword [esp + 8], edi
mov dword [esp + 0x2c], eax
cmp edx, 3
jae 0x4e2099
xor ecx, ecx
mov dword [esp + 0x4c], edx
test edx, edx
je 0x4e217e
jmp 0x4e20a1
mov dword [esp + 0x4c], 3
mov eax, dword [esp + 0x50]
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x24]
lea edx, [eax*4]
mov dword [esp + 0xc], edx
nop word [eax + eax]
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + 0x5c]
mov eax, dword [edx + eax]
mov dword [esp + 0x70], eax
lea edi, [eax + ecx]
test eax, eax
je 0x4e2248
mov eax, dword [edi]
cmp eax, dword [esi]
jne 0x4e215e
mov ecx, dword [esp + 0x38]
lea eax, [esi + 4]
add edi, 4
sub eax, edi
mov edx, edi
add eax, dword [esp + 8]
cmp eax, ecx
cmovb ecx, eax
push ecx
lea ecx, [esi + 4]
call fcn.004d5660
add esp, 4
mov dword [esp + 0x58], eax
lea ecx, [eax + edi]
mov edi, dword [esp + 0x38]
cmp ecx, dword [esp + 8]
jne 0x4e2129
mov edx, dword [esp + 0x6c]
lea ecx, [eax + 4]
push edi
add ecx, esi
call fcn.004d5660
add esp, 4
add eax, dword [esp + 0x58]
lea ecx, [eax + 4]
cmp ecx, dword [esp + 0x30]
jbe 0x4e2156
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x70]
sub eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x60]
add eax, 3
mov dword [esp + 0x30], ecx
mov dword [edx], eax
lea eax, [ecx + esi]
cmp eax, edi
je 0x4e2260
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
add edx, 4
inc eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x4c]
jb 0x4e20c0
mov edx, dword [esp + 0x20]
mov ecx, eax
mov eax, dword [esp + 0x5c]
sub edx, ecx
mov edi, dword [esp + 0x50]
mov dword [esp + 0x50], 0
mov eax, dword [eax + 0x5c]
mov eax, dword [eax + edi*4 + 0xc]
mov edi, dword [esp + 8]
mov dword [esp + 0xc], eax
shr dword [esp + 0xc], 8
movzx eax, al
cmp edx, eax
cmova edx, eax
mov dword [esp + 0x20], edx
test edx, edx
je 0x4e2248
mov eax, dword [esp + 0xc]
lea ecx, [eax*4]
mov dword [esp + 0xc], ecx
nop word [eax + eax]
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x24]
mov eax, dword [eax + 0x64]
mov eax, dword [ecx + eax]
add edx, eax
mov dword [esp + 0x58], eax
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x4e222e
push dword [esp + 0x6c]
add edx, 4
lea ecx, [esi + 4]
push edi
mov edi, dword [esp + 0x40]
push edi
call fcn.004d56e0
add eax, 4
add esp, 0xc
cmp eax, dword [esp + 0x30]
jbe 0x4e222a
mov ecx, dword [esp + 0x18]
sub ecx, dword [esp + 0x58]
sub ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x60]
add ecx, 3
mov dword [esp + 0x30], eax
add eax, esi
mov dword [edx], ecx
cmp eax, edi
je 0x4e2248
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x50]
add ecx, 4
mov edi, dword [esp + 8]
inc eax
mov dword [esp + 0x50], eax
mov dword [esp + 0xc], ecx
cmp eax, dword [esp + 0x20]
jb 0x4e21d0
mov eax, dword [esp + 0x30]
pop edi
pop esi
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.00518799
mov esp, ebp
pop ebp
ret
mov eax, ecx
mov ecx, dword [esp + 0x18c]
pop edi
pop esi
xor ecx, esp
call fcn.00518799
mov esp, ebp
pop ebp
ret