Function at 0x46db90
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x4f502b
mov eax, dword fs:[0]
push eax
sub esp, 0x1b0
push ebx
push ebp
push edi
mov eax, dword [0x536ed4]
xor eax, esp
push eax
lea eax, [esp + 0x1c0]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x1d0]
cmp dword [esi + 0x164c], 0
je 0x46dcb1
push pe_nt_image_headers32
lea eax, [esp + 0xc0]
push 0
push eax
mov dword [esp + 0x20], 0
call fcn.004d1c40
mov edx, dword [0x50bfc8]
push ecx
mov ecx, dword [0x50bfc4]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [0x50bfcc]
mov dword [eax + 4], edx
mov edx, dword [0x50bfd0]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
push 4
lea eax, [esp + 0x28]
push eax
push 0
push 0
mov ecx, ebp
call fcn.00458740
add esp, 0x20
test eax, eax
je 0x46dcb1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x46df80
xor ecx, ecx
lea eax, [eax + eax*2]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004bb042
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x24], edi
je 0x46dcb1
mov ecx, dword [0x50bfc4]
mov edx, dword [0x50bfc8]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [0x50bfcc]
mov dword [eax + 4], edx
mov edx, dword [0x50bfd0]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x24]
lea eax, [eax + eax*2]
add eax, eax
add eax, eax
push eax
push edi
push 0
push 1
mov ecx, ebp
call fcn.00458740
add esp, 0x20
test eax, eax
jne 0x46dcb8
push edi
call fcn.004bb03d
add esp, 4
xor eax, eax
jmp 0x46df85
mov ebp, dword [esp + 0x14]
lea ebx, [ebp*8]
push ebx
lea ecx, [esp + 0xc0]
push edi
push ecx
call fcn.004d9220
add esp, 0xc
lea edx, [ebp*4]
push edx
shr ebx, 2
lea eax, [edi + ebx*4]
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.004d9220
xor edi, edi
add esp, 0xc
cmp ebp, edi
jbe 0x46de58
mov ebp, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + edi*8 + 0xbc]
mov ecx, eax
mov edx, ebx
xor edx, eax
and edx, 0xff
xor ebx, edx
mov edx, dword [esi + 0xc]
add edx, edi
imul edx, edx, 0xac
mov dword [edx + esi + 0xb4], ebx
shr ecx, 8
shr eax, 0xc
xor ecx, ebp
and ecx, 0xf
xor ebp, ecx
mov ecx, dword [esp + 0x38]
mov dword [edx + esi + 0xb8], ebp
and ecx, 0xfff00000
or ecx, eax
mov dword [edx + esi + 0xbc], ecx
lea eax, [edx + esi + 0xb4]
mov eax, dword [esp + edi*8 + 0xc0]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x28]
mov edx, ecx
xor edx, eax
and edx, 0xff
xor ecx, edx
mov edx, dword [esp + 0x2c]
shr eax, 8
xor eax, edx
and eax, 0xffff
xor edx, eax
mov eax, dword [esi + 0xc]
add eax, edi
imul eax, eax, 0xac
mov dword [eax + esi + 0x13c], ecx
mov dword [eax + esi + 0x140], edx
mov eax, dword [esi + 0xc]
add eax, edi
imul eax, eax, 0xac
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + edi*4 + 0x3c]
mov dword [eax + esi + 0x144], ecx
mov edx, dword [esi + 0xc]
add edx, edi
imul edx, edx, 0xac
lea ecx, [edx + esi + 0x148]
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x1d4]
add eax, edi
imul eax, eax, 0xac
mov dword [eax + esi + 0x154], ecx
mov edx, dword [esi + 0xc]
lea ecx, [edi + edx]
mov eax, ecx
imul eax, eax, 0xac
mov edx, dword [eax + esi + 0xb4]
add eax, esi
and edx, 0xf
push edx
mov edx, dword [eax + 0xbc]
shr edx, 8
and edx, 0xf
push edx
mov edx, dword [eax + 0xb8]
shr edx, 2
and edx, 1
push edx
movzx edx, byte [eax + 0x141]
push edx
movzx edx, byte [eax + 0x140]
mov eax, dword [eax + 0x144]
push edx
push eax
push ecx
push str.CJackInfo::LoadPinCfgOfDevice_:_Jack__x___Wid__X__Loc__X__Type__X__ReTasking__d__DefDev__d__Sequence__d
call fcn.004012f0
add edi, 1
add esp, 0x20
cmp edi, dword [esp + 0x14]
jb 0x46dd03
xor edi, edi
mov ecx, dword [esi + 0x164c]
test dword [ecx + 0x18], 0x200000
je 0x46df5b
push 0x50148c
lea ecx, [esp + 0x20]
call fcn.00401b10
mov dword [esp + 0x1c8], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
jbe 0x46df30
lea ebp, [ebx + 0xc]
lea esp, [esp]
mov edx, dword [esi + 0xc]
add edx, ebx
push edx
lea eax, [esp + 0x20]
push str.Pin__d
push eax
call fcn.00401af0
mov eax, dword [esp + 0x28]
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
push str.Retasking
mov ecx, 0x54b0b0
call fcn.004c5768
cmp eax, edi
je 0x46df23
cmp dword [esp + 0x20], ebp
jne 0x46df0e
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x18]
add ecx, ebx
imul ecx, ecx, 0xac
lea eax, [ecx + esi + 0x148]
mov ecx, dword [edx]
mov dword [eax], ecx
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x46df23
push eax
call fcn.004bb03d
add esp, 4
mov dword [esp + 0x18], edi
add ebx, 1
cmp ebx, dword [esp + 0x14]
jb 0x46dea0
mov dword [esp + 0x1c8], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46df5b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004bb03d
mov edx, dword [esi + 0xc]
mov eax, dword [esp + 0x1d8]
mov ecx, dword [esp + 0x18]
add esp, 4
mov dword [esi + eax*4 + 0x1658], edx
add dword [esi + 0xc], ecx
mov eax, 1
mov ecx, dword [esp + 0x1c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x1bc
ret 8