Function at 0x46b6a0
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x4cbadb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x38]
push esi
cmp eax, 0x32
push edi
mov dword [esp + 8], 0x9ac6cdd7
jl 0x46b800
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 8]
mov edx, dword [eax]
mov esi, dword [ecx]
cmp edx, esi
jne 0x46b800
mov dword [esp + 0x40], 0
mov dx, word [esp + 0x40]
mov ecx, eax
mov esi, 0xa
xor dx, word [ecx]
add ecx, 2
dec esi
jne 0x46b6f5
cmp dx, word [eax + 0x14]
jne 0x46b800
mov cx, word [eax + 0xc]
mov dx, word [eax + 0xe]
mov di, word [eax + 6]
push ebx
mov bx, word [eax + 8]
push ebp
mov bp, word [eax + 0xa]
push 0
mov word [esp + 0x14], cx
mov word [esp + 0x4c], dx
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push 0x58
push esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x5a
push esi
mov dword [esp + 0x4c], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push esi
push 0
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
movsx ecx, bp
movsx edx, di
mov ebp, dword [sym.imp.KERNEL32.dll_MulDiv]
and esi, 0xffff
sub ecx, edx
push esi
inc ecx
push eax
push ecx
call ebp
movsx ecx, word [esp + 0x10]
mov edi, dword [esp + 0x34]
push esi
movsx edx, bx
mov dword [edi], eax
mov eax, dword [esp + 0x28]
sub ecx, edx
push eax
inc ecx
push ecx
call ebp
mov esi, dword [esp + 0x38]
mov dword [esi], eax
mov ecx, dword [edi]
cmp ecx, 0x7d0
jg 0x46b7a8
cmp eax, 0x7d0
jle 0x46b7d4
cmp ecx, eax
mov ebx, ecx
jg 0x46b7b0
mov ebx, eax
lea eax, [ecx + ecx*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 4
cdq
idiv ebx
mov dword [edi], eax
mov eax, dword [esi]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 4
cdq
idiv ebx
mov dword [esi], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
pop ebp
pop ebx
mov dword [eax], 0x18
pop edi
mov dword [ecx], 1
mov eax, 1
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x46b8cf
push 0x2e
push esi
call fcn.004bea30
add esp, 8
test eax, eax
je 0x46b8cf
push str..wmf
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x46b8cf
push 0x750
call fcn.004be967
add esp, 4
mov dword [esp + 0x40], eax
test eax, eax
mov dword [esp + 0x14], 0
je 0x46b85c
push esi
mov ecx, eax
call fcn.00479370
mov esi, eax
jmp 0x46b85e
xor esi, esi
push 0
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.00463240
mov ecx, esi
mov edi, eax
call fcn.00464160
test edi, edi
je 0x46b8b0
mov ecx, esi
call fcn.00465480
mov edx, dword [esp + 0x2c]
mov ecx, esi
mov dword [edx], eax
call fcn.00465490
mov ecx, dword [esp + 0x30]
mov dword [ecx], eax
mov ecx, esi
call fcn.004654a0
mov edx, dword [esp + 0x34]
mov ecx, esi
mov dword [edx], eax
call fcn.004654b0
mov ecx, dword [esp + 0x38]
mov dword [ecx], eax
test esi, esi
je 0x46b8bc
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ecx, dword [esp + 0xc]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret