Function at 0x4619c0
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x4d79cb
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 0x461b20
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 8]
mov edx, dword [eax]
mov esi, dword [ecx]
cmp edx, esi
jne 0x461b20
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 0x461a15
cmp dx, word [eax + 0x14]
jne 0x461b20
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 0x461ac8
cmp eax, 0x7d0
jle 0x461af4
cmp ecx, eax
mov ebx, ecx
jg 0x461ad0
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 0x461bef
push 0x2e
push esi
call fcn.004c82b0
add esp, 8
test eax, eax
je 0x461bef
push 0x4f16c8
push eax
call dword [sym.imp.kernel32.dll_lstrcmpi]
test eax, eax
jne 0x461bef
push 0x750
call fcn.004c7e90
add esp, 4
mov dword [esp + 0x40], eax
test eax, eax
mov dword [esp + 0x14], 0
je 0x461b7c
push esi
mov ecx, eax
call fcn.0046f5d0
mov esi, eax
jmp 0x461b7e
xor esi, esi
push 0
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.00458a40
mov ecx, esi
mov edi, eax
call fcn.00459960
test edi, edi
je 0x461bd0
mov ecx, esi
call fcn.0045ac80
mov edx, dword [esp + 0x2c]
mov ecx, esi
mov dword [edx], eax
call fcn.0045ac90
mov ecx, dword [esp + 0x30]
mov dword [ecx], eax
mov ecx, esi
call fcn.0045aca0
mov edx, dword [esp + 0x34]
mov ecx, esi
mov dword [edx], eax
call fcn.0045acb0
mov ecx, dword [esp + 0x38]
mov dword [ecx], eax
test esi, esi
je 0x461bdc
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