Function at 0x4e1cc0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6a0f90
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x24
push esi
push edi
mov eax, dword [0x816078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x1c], eax
cmp dword [ebx + 0xc], 2
lea ecx, [eax + 8]
mov eax, dword [ecx]
mov esi, dword [ecx + 4]
setne dh
cmp dword [ebx + 0xc], 1
mov dword [ebp - 0x20], ecx
sete dl
nop dword [eax]
mov edi, eax
mov dword [ebp - 0x28], esi
mov ecx, edi
shr ecx, 0xc
dec ecx
shl ecx, 0xc
xor ecx, edi
and ecx, 0x7f000
xor ecx, edi
mov eax, ecx
shr eax, 0x1e
and al, 1
or dl, al
or dh, al
mov byte [ebp - 0x13], dl
mov byte [ebp - 0x14], dh
jne 0x4e1dbc
test esi, esi
je 0x4e1dbc
lea eax, [ecx - 1]
mov byte [ebp - 0x15], 0
xor eax, ecx
and eax, 0xfff
xor eax, ecx
mov ecx, eax
shr ecx, 0x13
dec ecx
shl ecx, 0x13
xor ecx, eax
and ecx, 0x3ff80000
xor ecx, eax
mov eax, ecx
and eax, 0x7f000
sub esi, 1
je 0x4e1d86
test eax, eax
jne 0x4e1d86
mov dl, 1
jmp 0x4e1d88
xor dl, dl
mov byte [ebp - 0x11], dl
test ecx, 0x3ff80000
jne 0x4e1db6
test ecx, ecx
js 0x4e1d9b
test eax, eax
je 0x4e1db6
mov eax, ecx
mov byte [ebp - 0x12], 1
and eax, 0xfff80000
add eax, 0x80000
xor eax, ecx
and eax, 0x3ff80000
xor ecx, eax
jmp 0x4e1e0b
mov byte [ebp - 0x12], 0
jmp 0x4e1e0b
mov byte [ebp - 0x15], 1
mov eax, ecx
mov byte [ebp - 0x11], 0
mov byte [ebp - 0x12], 0
test dh, dh
je 0x4e1e34
shr ecx, 0x13
dec ecx
shl ecx, 0x13
xor ecx, eax
and ecx, 0x3ff80000
xor ecx, eax
test ecx, 0x7f000
jne 0x4e1e34
test dl, dl
je 0x4e1e11
mov edx, ecx
mov eax, ecx
shl edx, 0x14
shr eax, 0x13
sar edx, 0x14
and eax, 0x7ff
sub eax, edx
mov edx, dword [ebp - 0x1c]
add eax, dword [edx + 0x54]
setne dl
mov byte [ebp - 0x11], dl
test dl, dl
je 0x4e1e34
jmp 0x4e1e19
test esi, esi
je 0x4e1e30
mov byte [ebp - 0x11], 1
mov eax, ecx
and eax, 0xfffff000
add eax, 0x1000
xor eax, ecx
and eax, 0x7f000
xor ecx, eax
jmp 0x4e1e34
mov byte [ebp - 0x11], 0
mov edx, dword [ebp - 0x28]
mov eax, edi
push ebx
mov ebx, ecx
mov ecx, esi
mov esi, dword [ebp - 0x20]
lock cmpxchg8b qword [esi]
pop ebx
mov esi, edx
cmp eax, edi
jne 0x4e1e51
cmp esi, dword [ebp - 0x28]
je 0x4e1e5c
mov dl, byte [ebp - 0x13]
mov dh, byte [ebp - 0x14]
jmp 0x4e1d20
cmp byte [ebp - 0x12], 0
je 0x4e1e6f
mov ecx, dword [ebp - 0x1c]
push dword [ebx + 0x10]
push 1
mov eax, dword [ecx]
call dword [eax + 8]
cmp byte [ebp - 0x11], 0
je 0x4e1f60
xor eax, eax
cmp byte [ebp - 0x13], al
sete al
inc eax
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
test byte [0x831a80], 0x10
mov edi, eax
mov esi, dword [ebp - 0x28]
je 0x4e1ea5
push edi
push esi
mov edx, 0x6fec58
call fcn.004e3d26
mov eax, dword [ebp - 0x1c]
push 0
push esi
push edi
push dword [eax + 0x50]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
je 0x4e1ecc
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebx + 0x10]
push esi
push 0
mov eax, dword [ecx]
call dword [eax + 8]
jmp 0x4e1f63
test byte [0x831a80], 0x20
je 0x4e1ee1
push edi
push esi
mov edx, 0x6fece8
call fcn.004e3d26
mov eax, dword [0x81cf10]
mov ecx, 0x81cf10
push 0x1c135e
call dword [eax + 4]
mov eax, dword [ebp - 0x20]
mov esi, dword [eax]
mov ecx, esi
mov edi, dword [eax + 4]
mov eax, esi
shr ecx, 0xc
mov edx, edi
dec ecx
mov dword [ebp - 0x28], esi
shl ecx, 0xc
xor ecx, esi
and ecx, 0x7f000
xor ecx, esi
mov esi, dword [ebp - 0x20]
push ebx
mov ebx, ecx
mov ecx, edi
lock cmpxchg8b qword [esi]
pop ebx
mov ecx, edx
cmp eax, dword [ebp - 0x28]
jne 0x4e1f30
cmp ecx, edi
je 0x4e1f60
nop dword [eax]
mov esi, eax
mov dword [ebp - 0x28], ecx
shr esi, 0xc
mov edi, eax
dec esi
mov edx, ecx
shl esi, 0xc
xor esi, eax
and esi, 0x7f000
xor esi, eax
push ebx
mov ebx, esi
mov esi, dword [ebp - 0x20]
lock cmpxchg8b qword [esi]
pop ebx
mov ecx, edx
cmp eax, edi
jne 0x4e1f30
cmp ecx, dword [ebp - 0x28]
jne 0x4e1f30
mov esi, dword [ebx + 0x10]
cmp byte [ebp - 0x14], 0
je 0x4e1f97
cmp dword [ebx + 0xc], 3
jne 0x4e1f7b
mov eax, dword [ebx + 8]
mov dword [esi], eax
mov eax, 3
jmp 0x4e1fa0
cmp byte [ebp - 0x13], 0
jne 0x4e1f93
mov eax, dword [0x81cf10]
mov ecx, 0x81cf10
push 0x1c1394
call dword [eax + 4]
xor eax, eax
jmp 0x4e1fa0
xor eax, eax
cmp byte [ebp - 0x15], al
sete al
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc