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

Disassembly:
sub esp, 0x48
mov eax, dword [0x421004]
xor eax, esp
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x4c]
push ebx
push ebp
push esi
mov eax, dword [ecx + 0x3c]
xor ebp, ebp
push edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], 0
mov edx, dword [eax + ecx + 0x78]
mov eax, dword [edx + ecx + 0x20]
add edx, ecx
mov dword [esp + 0x20], edx
add eax, ecx
mov dword [esp + 0x14], eax
mov edx, dword [edx + 0x18]
mov dword [esp + 0x1c], edx
test edx, edx
je 0x40615e
nop word [eax + eax]
mov edx, dword [eax]
xorps xmm0, xmm0
add edx, ecx
mov dword [esp + 0x34], 0
mov eax, edx
mov dword [esp + 0x38], 0
movups xmmword [esp + 0x24], xmm0
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405f21
sub eax, esi
lea ecx, [esp + 0x24]
push eax
push edx
call fcn.00401020
mov edi, dword [esp + 0x34]
lea ebx, [esp + 0x24]
mov esi, edi
xor esi, 0x14d
cmp dword [esp + 0x38], 0x10
cmovae ebx, dword [esp + 0x24]
push ebx
shr edi, 2
push edi
push str._x_and__p
call fcn.00406210
add esp, 0xc
xor edx, edx
test edi, edi
je 0x405f91
nop word [eax + eax]
imul ecx, dword [ebx + edx*4], 0x5bd1e991
inc edx
imul esi, esi, 0x5bd1e991
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul ecx, eax, 0x5bd1e991
xor esi, ecx
cmp edx, edi
jl 0x405f70
mov eax, dword [esp + 0x34]
xor ecx, ecx
and eax, 3
sub eax, 1
je 0x405fbb
sub eax, 1
je 0x405fb1
sub eax, 1
jne 0x405fc9
movsx ecx, byte [ebx + edi*4 + 2]
shl ecx, 0x10
movsx eax, byte [ebx + edi*4 + 1]
shl eax, 8
xor ecx, eax
movsx eax, byte [ebx + edi*4]
xor eax, ecx
imul eax, eax, 0x5bd1e991
xor esi, eax
mov eax, esi
shr eax, 0xd
xor eax, esi
imul eax, eax, 0x5bd1e991
mov ecx, eax
shr ecx, 0xf
xor ecx, eax
je 0x405fe5
cmp ecx, dword [esp + 0x60]
je 0x40603e
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
add eax, 4
mov dword [esp + 0x14], eax
cmp ecx, 0x10
jb 0x40602a
mov edx, dword [esp + 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40601c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406177
push ecx
push edx
call fcn.00406668
mov eax, dword [esp + 0x1c]
add esp, 8
mov ecx, dword [esp + 0x10]
inc ebp
cmp ebp, dword [esp + 0x1c]
jae 0x40615e
jmp 0x405f00
xorps xmm0, xmm0
lea ecx, [esp + 0x3c]
push 0x50
movups xmmword [esp + 0x40], xmm0
call fcn.00405ca0
movups xmm0, xmmword [str.006:107_4:_00007:277_0:_004:_04:_008:_08:_08:_8:_7:2_3:_9:193_4:_]
mov edi, eax
mov dword [esp + 0x4c], 0x41
mov ebx, 0x4f
mov dword [esp + 0x3c], edi
push 0xc
mov dword [esp + 0x54], ebx
movups xmmword [edi], xmm0
movups xmm0, xmmword [0x419200]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [0x419210]
movups xmmword [edi + 0x20], xmm0
movups xmm0, xmmword [0x419220]
movups xmmword [edi + 0x30], xmm0
mov al, byte [0x419230]
mov byte [edi + 0x40], al
mov byte [edi + 0x41], 0
call fcn.00406638
add esp, 4
test eax, eax
je 0x4060c3
lea ecx, [esp + 0x3c]
push ecx
mov ecx, eax
call fcn.004010b0
mov ebx, dword [esp + 0x50]
mov edi, dword [esp + 0x3c]
jmp 0x4060c5
xor eax, eax
mov esi, dword [eax + 4]
push 0xc
push eax
shl esi, 2
call fcn.00406668
mov ecx, dword [esp + 0x18]
mov eax, esi
cdq
add esp, 8
sub eax, edx
mov edx, dword [esp + 0x20]
sar eax, 1
imul eax, ebp
add eax, dword [edx + 0x24]
movzx eax, word [eax + ecx]
imul eax, esi
add eax, dword [edx + 0x1c]
mov eax, dword [eax + ecx]
mov dword [esp + 0x18], eax
cmp ebx, 0x10
jb 0x406128
lea ecx, [ebx + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x40611e
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406177
push ecx
push edi
call fcn.00406668
add esp, 8
mov ecx, dword [esp + 0x38]
cmp ecx, 0x10
jb 0x40615a
mov edx, dword [esp + 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406150
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406177
push ecx
push edx
call fcn.00406668
add esp, 8
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
pop edi
pop esi
add eax, ecx
mov ecx, dword [esp + 0x4c]
pop ebp
pop ebx
xor ecx, esp
call fcn.00406676
add esp, 0x48
ret
call fcn.0040960f
int3